3Com Switch 7750 Configuration Guide

788 CHAPTER 71: SSH TERMINAL SERVICES
SFTP Configuration
Example
Network requirements
As shown in Figure 204.
An SSH connection is present between Switch A and Switch B.
Switch B serves as an SFTP server, with IP address 10.111.27.91/24.
Switch A serves as an SFTP client, with IP address 10.111.27.90/24.
An SSH username abc with password hello is created.
Network diagram
Figure 204 Network diagram for SFTP configuration
Configuration procedure
1 Configure Switch B (SFTP server)
# Enable the SFTP server.
[SW7750] sftp server enable
# Specify SFTP service for SSH user abc.
[SW7750] ssh user abc service-type sftp
2 Configure Switch A (SFTP client)
# Establish a connection to the remote SFTP server and enter SFTP client view.
[SW7750] sftp 10.111.27.91
# Display the current directory on the SFTP server, delete file z and verify the
operation.
sftp-client> dir
-rwxrwxrwx 1 noone nogroup 1759 Aug 23 06:52 config.cfg
-rwxrwxrwx 1 noone nogroup 225 Aug 24 08:01 pubkey2
-rwxrwxrwx 1 noone nogroup 283 Aug 24 07:39 pubkey1
drwxrwxrwx 1 noone nogroup 0 Sep 01 06:22 new
-rwxrwxrwx 1 noone nogroup 225 Sep 01 06:55 pub
-rwxrwxrwx 1 noone nogroup 0 Sep 01 08:00 z
Received status: End of file
Received status: Success
sftp-client> delete z
Enter SFTP client view sftp { host-ip | host-name } -
Display help information
about SFTP client commands
help [ all | command-name ] Optional
Table 625 Display help information about SFTP client commands
Operation Command Description
SFTP server SFTP client
Switch B Switch A
Vlan-int1
10.111 .27.91 /24
Vlan-int1
10.111.27.90/24