3Com 4210 PWR Configuration Manual page 444

9/18/26 port and pwr 9/18/26 port 4210 series switch
Table of Contents

Advertisement

442
C
38: FTP
HAPTER
AND
SFTP C
ONFIGURATION
# Configure the authentication mode as password. Authentication timeout time,
retry number, and update time of the server key adopt the default values.
[4210] ssh user client001 authentication-type password
# Specify the service type as SFTP.
[4210] ssh user client001 service-type sftp
# Enable the SFTP server.
[4210] sftp server enable
2 Configure the SFTP client (switch A)
# Configure the IP address of the VLAN interface on switch A. It 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.
<4210> system-view
[4210] interface vlan-interface 1
[4210-Vlan-interface1] ip address 192.168.0.2 255.255.255.0
[4210-Vlan-interface1] quit
# Connect to the remote SFTP server. Enter the user name "client001" and the
password "abc", and then enter SFTP client view.
[4210] 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 to access it?(Y/N):y
Do you want to save the server's public key?(Y/N):n
Enter password:
sftp-client>
# Display the current directory of the server. Delete the file z and verify the result.
sftp-client> dir
-rwxrwxrwx
1 noone
-rwxrwxrwx
1 noone
-rwxrwxrwx
1 noone
drwxrwxrwx
1 noone
-rwxrwxrwx
1 noone
-rwxrwxrwx
1 noone
Received status: End of file
Received status: Success
sftp-client> delete z
The following files will be deleted:
/z
Are you sure to delete it?(Y/N):y
This operation may take a long time.Please wait...
Received status: Success
File successfully Removed
sftp-client> dir
nogroup
1759 Aug 23 06:52 config.cfg
nogroup
225 Aug 24 08:01 pubkey2
nogroup
283 Aug 24 07:39 pubkey1
nogroup
0 Sep 01 06:22 new
nogroup
225 Sep 01 06:55 pub
nogroup
0 Sep 01 08:00 z

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents