3Com WX3000 operation manual Sftp host-ip host-name, Delete remotefile, Remove remote-file, Exit

Models: WX3000

1 715
Download 715 pages 21.26 Kb
Page 555
Image 555

 

 

To do…

 

Use the command…

 

Remarks

 

 

 

 

sftp { host-ip host-name }

 

 

 

 

 

[ port-num] [ identity-key { dsa

 

 

 

 

 

rsa } prefer_kex

 

 

 

 

 

{ dh_group1

 

 

 

 

 

dh_exchange_group }

 

 

 

 

Enter SFTP client view

prefer_ctos_cipher { des

Required

 

 

aes128 } prefer_stoc_cipher

 

 

 

 

 

 

 

 

{ des aes128 }

 

 

 

 

 

prefer_ctos_hmac { sha1

 

 

 

 

 

sha1_96 md5 md5_96 }

 

 

 

 

 

prefer_stoc_hmac { sha1

 

 

 

 

 

sha1_96 md5 md5_96 } ] *

 

 

 

 

 

 

 

 

 

 

 

Change the working directory

 

cd pathname

 

 

 

 

on the remote SFTP server

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Change the working directory

 

cdup

 

 

 

 

to be the parent directory

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Display the working directory

 

pwd

 

Optional

 

 

on the SFTP server

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Create a directory on the

 

mkdir pathname

 

 

 

 

remote SFTP server

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Remove a directory on the

 

rmdir pathname

 

 

 

 

remote SFTP server

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Delete a specified file

 

delete remotefile

 

Optional

 

 

 

 

 

Both commands have the same

 

 

 

remove remote-file

 

 

 

 

 

 

effect.

 

 

 

 

 

 

 

 

 

 

 

dir [ remotefile ] [ localfile ]

 

Optional

 

 

 

 

 

 

If no file name is provided, all

 

 

 

 

 

 

 

 

 

 

 

 

the files in the current directory

 

 

 

 

 

 

are displayed.

 

 

Query a specified file on the

 

 

 

The difference between these

 

 

SFTP server

 

ls [ remotefile ] [ localfile ]

 

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

 

get remotefile [ localfile ]

 

 

 

 

the SFTP server

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Upload a local file to the remote

 

put localfile [ remotefile ]

Optional

 

 

SFTP server

 

 

 

 

 

 

Rename a file on the remote

 

rename remote-source

 

 

 

 

server

remote-dest

 

 

 

 

 

 

 

 

 

 

 

 

 

bye

 

 

 

 

Exit SFTP client view and

 

 

 

The three commands have the

 

 

 

exit

 

 

 

return to system view

 

 

same effect.

 

 

 

 

 

 

 

 

 

quit

 

 

 

 

 

 

 

 

 

 

 

Display the online help about a

 

 

 

 

 

 

specified command concerning

 

help [ all command-name ]

Optional

 

 

SFTP

 

 

 

 

 

 

 

 

 

 

 

1-15

Page 555
Image 555
3Com WX3000 operation manual Sftp host-ip host-name, Delete remotefile, Remove remote-file, Exit, Help all command-name