3com 4210 User Manual

Page of 336
302
C
HAPTER
 32: SSH C
ONFIGURATION
 G
UIDE
drwxrwxrwx
1 noone
nogroup
0 Sep 01 06:22 new
-rwxrwxrwx
1 noone
nogroup
225 Sep 01 06:55 pub 
# Add a directory named new1, and then check that the new directory has been 
successfully created.
sftp-client> mkdir new1
New directory created
sftp-client> dir
-rwxrwxrwx
1 noone
nogroup
1759 Aug 23 06:52 config.cfg
-rwxrwxrwx
1 noone
nogroup
225 Aug 24 08:01 pubkey2
-rwxrwxrwx
1 noone
nogroup
283 Aug 24 07:39 pubkey1
drwxrwxrwx
1 noone
nogroup
0 Sep 01 06:22 new
-rwxrwxrwx
1 noone
nogroup
225 Sep 01 06:55 pub
drwxrwxrwx
1 noone
nogroup
0 Sep 02 06:30 new1 
# Rename the directory to new2, and then verify the operation.
sftp-client> rename new1 new2
File successfully renamed
sftp-client> dir
-rwxrwxrwx
1 noone
nogroup
1759 Aug 23 06:52 config.cfg
-rwxrwxrwx
1 noone
nogroup
225 Aug 24 08:01 pubkey2
-rwxrwxrwx
1 noone
nogroup
283 Aug 24 07:39 pubkey1
drwxrwxrwx
1 noone
nogroup
0 Sep 01 06:22 new
-rwxrwxrwx
1 noone
nogroup
225 Sep 01 06:55 pub
drwxrwxrwx
1 noone
nogroup
0 Sep 02 06:33 new2 
# Download the file pubkey2 from the server, renaming it to public.
sftp-client> get pubkey2 public
This operation may take a long time, please wait...
Remote
file:flash:/pubkey2 --->
Local file: public..
Downloading file successfully ended 
# Upload file pu to the server and rename it to puk, and then verify the operation.
sftp-client> put pu puk
This operation may take a long time, please wait...
Local file: pu --->
Remote file: flash:/puk
Uploading file successfully ended
sftp-client> dir
-rwxrwxrwx
1 noone
nogroup
1759 Aug 23 06:52 config.cfg
-rwxrwxrwx
1 noone
nogroup
225 Aug 24 08:01 pubkey2
-rwxrwxrwx
1 noone
nogroup
283 Aug 24 07:39 pubkey1
drwxrwxrwx
1 noone
nogroup
0 Sep 01 06:22 new
drwxrwxrwx
1 noone
nogroup
0 Sep 02 06:33 new2
-rwxrwxrwx
1 noone
nogroup
283 Sep 02 06:35 pub
-rwxrwxrwx
1 noone
nogroup
283 Sep 02 06:36 puk
sftp-client> 
# Exit SFTP.
sftp-client> quit
Bye