Operation Manual – SSH2.0
Quidway S3100 Series Ethernet Switches
Chapter 1 SSH Terminal Services
Huawei Technologies Proprietary
1-16
Table 1-15
Operate with SFTP directories
Operation
Command
Remarks
Enter system view
system-view
Enter SFTP client view
sftp
{
host-ip |
host-name
}
Change the current directory
cd remote-path
Return to the upper directory
cdup
Display the current directory
pwd
Optional
dir
[
remote-path
]
Display the list of the files in a
directory
ls
[
remote-path
]
Optional
The
dir
and
ls
commands have the
same function.
Create a directory on the
SFTP server
mkdir remote-path
Delete a directory from the
SFTP server
rmdir remote-path
Optional
IV. Operating with SFTP files
SFTP file-related operations include: changing file name, downloading files, uploading
files, displaying the list of the files, deleting files.
Table 1-16
Operate with SFTP files
Operation
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
[
remote-path
]
Display the list of the files
in a directory
ls
[
remote-path
]
Optional
The
dir
and
ls
commands have the
same function.