H3C Technologies H3C S3600 Series Switches User Manual
Page 964
1-17
To do…
Use the command…
Remarks
dir [ -a | -l ] [ remote-path ]
Query a specified file on the
SFTP server
ls [ -a | -l ] [ remote-path ]
Optional
If no file name is provided, all
the files in the current directory
are displayed.
The difference between these
two commands is that the dir
command can display the file
name, directory as well as file
attributes; while the Is
command can display only the
file name and directory.
Download a remote file from
the SFTP server
get remotefile [ localfile ]
Upload a local file to the remote
SFTP server
put localfile [ remotefile ]
Rename a file on the remote
server
rename remote-source
remote-dest
Optional
bye
exit
Exit SFTP client view and
return to system view
quit
The three commands have the
same effect.
Display the online help about a
specified command concerning
SFTP
help [ all | command-name ]
Optional
If you specify to authenticate a client through public key on the server, the client needs to read the local
private key when logging in to the SFTP server. Since both RSA and DSA are available for public key
authentication, you need to use the identity-key key word to specify the algorithms to get correct local
private key; otherwise you will fail to log in. For details, see SSH Operation Manual.
Specifying the source interface or source IP address for an SFTP client
You can specify the source interface or source IP address for a switch acting as an FTP client, so that it
can connect to a remote SFTP server.
Follow these steps to specify the source interface or source IP address for an SFTP client:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Specify an interface as the
source interface of the
specified SFTP client
sftp source-interface
interface-type interface-number
Specify an IP address as the
source IP address of the
specified SFTP client
sftp source-ip ip-address
Use either command
Not specified by default.