H3C S7500 Series Ethernet Switches Operation Manual

Operation Manual – SSH Terminal Service
H3C S7500 Series Ethernet Switches Chapter 1
SSH Terminal Service Configuration
1-17
Table 1-15 Operate with SFTP files
To do... Use the command... Remarks
Enter system view
system-view
Enter SFTP client view
sftp { host-ip |
host-name }
Change the name of a file
on the remote SFTP
server
rename old-name
new-name
Download a file from the
remote SFTP server
get remote-file [ local-file ]
Upload a file to the remote
SFTP server
put local-file [ remote-file ]
Optional
dir [ -a | -l ] [ remote-path ]
Display the list of files in a
directory
ls [ -a | -l ] [ remote-path ]
Optional
The dir and ls commands
have the same function.
delete
remote-file&<1-10>
Delete a file from the
SFTP server
remove
remote-file&<1-10>
Optional
The delete and remove
commands have the
same function.
V. Displaying help information
You can display help information about a command, such as syntax and parameters.
Table 1-16 Display help information about SFTP client commands
To do... Use the command... Remarks
Enter system view
system-view
Enter SFTP client view sftp { host-ip | host-name }
Display help information about
SFTP client commands
help [ all | command-name ] Optional
1.2.4 SFTP Configuration Example
I. Network requirements
As shown in Figure 1-3:
z An SSH connection is present between Switch A and Switch B.
z Switch B serves as an SFTP server, with IP address being 10.111.27.91.
z Switch A serves as an SFTP client.
z An SSH user named abc with password being hello is created.