beautypg.com

Scp file transfer with password authentication, Network requirements, Configuration procedure – H3C Technologies H3C SecBlade LB Cards User Manual

Page 199

background image

188

# Exit SFTP client view.

sftp-client> quit

Connection closed.

SCP file transfer with password authentication

This section provides an example of configuring SCP for file transfer with the password authentication.

Network requirements

As shown in

Figure 87

, the LB acts as an SCP client and the router acts as an SCP server. A user can

securely transfer files with the router through LB. The router uses the password authentication method and

the client's username and password are saved on the router.

Figure 87 Network diagram

Configuration procedure

1.

Configure the SCP server:

system-view

[Router] public-key local create rsa

The range of public key size is (512 ~ 2048).

NOTES: If the key modulus is greater than 512,

It will take a few minutes.

Press CTRL+C to abort.

Input the bits of the modulus[default = 1024]:

Generating Keys...

++++++++

++++++++++++++

+++++

++++++++

# Enable the SSH server function.

[Router] ssh server enable

# Configure an IP address for GigabitEthernet 0/1. The SCP client uses this address as the
destination for SCP connection.

[Router] interface gigabitethernet 0/1

[Router-GigabitEthernet0/1] ip address 192.168.0.1 255.255.255.0

[Router-GigabitEthernet0/1] quit

# Set the authentication mode of the user interface to AAA.

[Router] user-interface vty 0 4

[Router-ui-vty0-4] authentication-mode scheme

This manual is related to the following products: