[Router] interface ethernet 1/1
[Router-Ethernet1/1] ip address 192.168.1.45 255.255.255.0
[Router-Ethernet1/1] quit
# Set the authentication mode of the user lines to AAA.
[Router] line vty 0 15
[Router-line-vty0-15] authentication-mode scheme
[Router-line-vty0-15] quit
# Create a local device management user client002 with the plaintext password aabbcc, the
service type ssh, the user role network-admin, and the working directory cfa0:/.
[Router] local-user client002 class manage
[Router-luser-manage-client002] password simple aabbcc
[Router-luser-manage-client002] service-type ssh
[Router-luser-manage-client002] authorization-attribute user-role network-admin
work-directory cfa0:/
[Router-luser-manage-client002] quit
# Create an SSH user client002 with the authentication method password and service type sftp.
(Optional. If an SSH user is not created, password authentication is used by default.)
[Router] ssh user client002 service-type sftp authentication-type password
2.
Establish a connection to the SFTP server:
The device supports different types of SFTP client software. This example uses an SFTP client that
runs PSFTP of PuTTY version 0.58.
NOTE:
PSFTP supports only password authentication.
To establish a connection to the SFTP server:
a.
Run the psftp.exe to launch the client interface shown in
command:
open 192.168.1.45
b.
Enter username client002 and password aabbcc as prompted to log in to the SFTP server.
Figure
239
66, and enter the following