HP StorageWorks Fabric OS 6.1.x administrator guide (5697-0234, November 2009)
Fabric OS 6.1.x administrator guide 91
Example of adding the public key to the switch
switch:alloweduser> sshutil importpubkey
Enter IP address:192.168.38.244
Enter remote directory:~auser/.ssh
Enter public key name(must have .pub suffix):id_dsa.pub
Enter login name:auser
Password:
Public key is imported successfully.
Exporting the public key for switch-to-host authentication (outgoing)
1. Log in to the switch as the allowed-user.
2. Use the sshUtil exportpubkey command to export the public key.
3. Respond to the prompts as follows:
Example of exporting a public key from the switch
pulsar067:kghanta> sshutil exportpubkey
Enter IP address:192.168.38.244
Enter remote directory:~auser/.ssh
Enter login name:auser
Password:
public key out_going.pub is exported successfully.
Appending the public key on a remote host
1. Log in to the remote host.
2. Locate the directory where authorized keys are stored.
You may need to refer to the hosts documentation to locate where the authorized keys are stored.
3. Appsend the public key to the file.
Testing the setup
Test your setup by using a command that uses SCP and authentication, such as firmwareDownload or a
configUpload.
Deleting keys on the switch
1. Log in to the switch as the allowed-user.
2. Use the sshUtil delprivkey command to delete the private key.
or
Use the sshUtil delpubkeys command to delete all public keys.
IP Address Enter the IP address of the remote host. IPv6 is supported by
sshUtil.
Remote directory Enter the path to the remote directory where the public key will be
stored.
Login name Enter the name of the user granted access to the remote host.
Password Enter the password for the remote host.