HP FlexFabric 5930 Series Security Configuration Manual page 141

Hide thumbs Also See for FlexFabric 5930 Series:
Table of Contents

Advertisement

[SwitchB] public-key peer switchkey import sshkey pubkey
# Create an SSH user client001 with the service type sftp, authentication method publickey, and
public key switchkey.
[SwitchB] ssh user client001 service-type sftp authentication-type publickey assign
publickey switchkey
# Create a local device management user client001 with the service type ssh, the user role
network-admin, and the working directory flash:/.
[SwitchB] local-user client001 class manage
[SwitchB-luser-manage-client001] service-type ssh
[SwitchB-luser-manage-client001] authorization-attribute user-role network-admin
work-directory flash:/
[SwitchB-luser-manage-client001] quit
3.
Establish a connection to the SFTP server:
# Establish a connection to the SFTP server and enter SFTP client view.
<SwitchA> sftp 192.168.0.1 identity-key rsa
Username: client001
Press CTRL+C to abort.
Connecting to 192.168.0.1 port 22.
The server is not authenticated. Continue? [Y/N]:y
Do you want to save the server public key? [Y/N]:n
sftp>
# Display files under the current directory of the server, delete the file named z, and verify that the
file has been successfully deleted.
sftp> dir -l
-rwxrwxrwx
1 noone
-rwxrwxrwx
1 noone
-rwxrwxrwx
1 noone
drwxrwxrwx
1 noone
-rwxrwxrwx
1 noone
-rwxrwxrwx
1 noone
sftp> delete z
Removing /z
sftp> dir -l
-rwxrwxrwx
1 noone
-rwxrwxrwx
1 noone
-rwxrwxrwx
1 noone
drwxrwxrwx
1 noone
-rwxrwxrwx
1 noone
# Add a directory named new1 and verify that it has been successfully created.
sftp> mkdir new1
sftp> dir -l
-rwxrwxrwx
1 noone
-rwxrwxrwx
1 noone
-rwxrwxrwx
1 noone
drwxrwxrwx
1 noone
-rwxrwxrwx
1 noone
drwxrwxrwx
1 noone
nogroup
1759 Aug 23 06:52 config.cfg
nogroup
225 Aug 24 08:01 pubkey2
nogroup
283 Aug 24 07:39 pubkey
nogroup
0 Sep 01 06:22 new
nogroup
225 Sep 01 06:55 pub
nogroup
0 Sep 01 08:00 z
nogroup
1759 Aug 23 06:52 config.cfg
nogroup
225 Aug 24 08:01 pubkey2
nogroup
283 Aug 24 07:39 pubkey
nogroup
0 Sep 01 06:22 new
nogroup
225 Sep 01 06:55 pub
nogroup
1759 Aug 23 06:52 config.cfg
nogroup
225 Aug 24 08:01 pubkey2
nogroup
283 Aug 24 07:39 pubkey
nogroup
0 Sep 01 06:22 new
nogroup
225 Sep 01 06:55 pub
nogroup
0 Sep 02 06:30 new1
134

Advertisement

Table of Contents
loading

Table of Contents