sftp server配置
<Huawei>sys
[Huawei]sys R2
[R2]int GigabitEthernet 0/0/0
[R2-GigabitEthernet0/0/0]ip add 192.168.1.2 24
<Huawei>sys
R2]user-interface vty 0 4
[R2-ui-vty0-4]authentication-mode aaa
[R2-ui-vty0-4]protocol inbound ssh
[R2-ui-vty0-4]q
[R2]rsa local-key-pair create
[R2]aaa
[R2-aaa]local-user huawei2 password cipher huawei2
Info: Add a new user.
[R2-aaa]local-user huawei2 privilege level 3
[R2-aaa]local-user huawei2 ftp-directory flash:
[R2]ssh user huawei2 authentication-type password
Authentication type setted, and will be in effect next time
[R2]sftp server enable
Info: Succeeded in starting the SFTP server.
sftp clien t连接
[Huawei]sys R1
[R1]int gi0/0/0
[R1-GigabitEthernet0/0/0]ip add 192.168.1.1 24
[R1]ssh client first-time enable
[R1]sftp 192.168.1.2