Sftp Server Configuration Example - HP 4800G Series Configuration Manual

24/48 port
Table of Contents

Advertisement

sftp-client> dir
-rwxrwxrwx
1 noone
-rwxrwxrwx
1 noone
-rwxrwxrwx
1 noone
drwxrwxrwx
1 noone
-rwxrwxrwx
1 noone
drwxrwxrwx
1 noone
# Rename directory new1 to new2 and check if the directory has been renamed successfully.
sftp-client> rename new1 new2
File successfully renamed
sftp-client> dir
-rwxrwxrwx
1 noone
-rwxrwxrwx
1 noone
-rwxrwxrwx
1 noone
drwxrwxrwx
1 noone
-rwxrwxrwx
1 noone
drwxrwxrwx
1 noone
# Download the file pubkey2 from the server and change the name to public.
sftp-client> get pubkey2 public
Remote
file:/pubkey2 --->
Downloading file successfully ended
# Upload the local file pu to the server, save it as puk, and check if the file has been uploaded
successfully.
sftp-client> put pu puk
Local file:pu --->
Uploading file successfully ended
sftp-client> dir
-rwxrwxrwx
1 noone
-rwxrwxrwx
1 noone
-rwxrwxrwx
1 noone
drwxrwxrwx
1 noone
drwxrwxrwx
1 noone
-rwxrwxrwx
1 noone
-rwxrwxrwx
1 noone
sftp-client>
# Terminate the connection to the remote SFTP server.
sftp-client> quit
Bye
<SwitchA>

SFTP Server Configuration Example

Network requirements
As shown in
Figure
an SFTP client, logs into the switch for file management and file transfer. An SSH user uses password
nogroup
1759 Aug 23 06:52 config.cfg
nogroup
nogroup
nogroup
nogroup
nogroup
nogroup
1759 Aug 23 06:52 config.cfg
nogroup
nogroup
nogroup
nogroup
nogroup
Local file: public
Remote file: /puk
nogroup
1759 Aug 23 06:52 config.cfg
nogroup
nogroup
nogroup
nogroup
nogroup
nogroup
2-2, an SSH connection is established between the host and the switch. The host,
225 Aug 24 08:01 pubkey2
283 Aug 24 07:39 pubkey
0 Sep 01 06:22 new
225 Sep 01 06:55 pub
0 Sep 02 06:30 new1
225 Aug 24 08:01 pubkey2
283 Aug 24 07:39 pubkey
0 Sep 01 06:22 new
225 Sep 01 06:55 pub
0 Sep 02 06:33 new2
225 Aug 24 08:01 pubkey2
283 Aug 24 07:39 pubkey
0 Sep 01 06:22 new
0 Sep 02 06:33 new2
283 Sep 02 06:35 pub
283 Sep 02 06:36 puk
2-8

Advertisement

Chapters

Table of Contents
loading

Table of Contents