Configuring SFTP 301
[3Com] ssh user client001
# Specify the service type as SFTP.
[3Com] ssh user client001
# Enable the SFTP server.
[3Com] sftp server enable
■Configure the SFTP client (Switch A)
#Create a VLAN interface on the switch and assign an IP address for it. This address must be in the same segment with the IP address of the VLAN interface on switch B. In this example, configure it as 192.168.0.2.
<3Com>
[3Com] interface
#Connect to the remote SFTP server using the username client001 and password abc to enter SFTP client view.
[3Com] sftp 192.168.0.1
Input Username: client001
Trying 192.168.0.1 ...
Press CTRL+K to abort
Connected to 192.168.0.1 ...
The Server is not authenticated. Do you continue access it? [Y/N]:y Do you want to save the server’s public key? [Y/N]:n
Enter password:
#Display the current directory of the server, delete the file z and verify the deletion.
dir |
|
|
|
| ||
1 | noone | nogroup | 1759 | Aug 23 06:52 config.cfg | ||
1 | noone | nogroup | 225 | Aug 24 08:01 pubkey2 | ||
1 | noone | nogroup | 283 | Aug 24 07:39 pubkey1 | ||
drwxrwxrwx | 1 | noone | nogroup | 0 | Sep 01 06:22 new | |
1 | noone | nogroup | 225 | Sep 01 06:55 pub | ||
1 | noone | nogroup | 0 | Sep 01 | 08:00 z | |
delete z |
|
|
|
| ||
The following files will be deleted: |
|
|
| |||
flash:/z |
|
|
|
|
|
|
Are you sure | to delete it?(Y/N):y |
|
|
| ||
This operation may take a long time.Please wait... | ||||||
File successfully Removed |
|
|
| |||
dir |
|
|
|
| ||
1 | noone | nogroup | 1759 | Aug 23 | 06:52 config.cfg | |
1 | noone | nogroup | 225 | Aug 24 | 08:01 pubkey2 | |
1 | noone | nogroup | 283 | Aug 24 | 07:39 pubkey1 |