Owner manual

AM456-9026A HP VMA SAN Gateway Users Guide 197
SSH Client Commands
Generate Public/Private Keys
ssh client user <username> identity <key-type> generate [passphrase
<phrase>]
Generate a new identity (private and public keys) for the specified user name. The given user name
must correspond to a valid local user account. When the keys are generated, the private key is
written to the users ssh directory in an appropriately named file (
id_dsa).
This identity can be used when the user uses the
slogin command to connect from the system to
another host.
DSA and RSA v2 keys for SSHv2 can be generated. This is specified with
dsa2 or rsa2 as the
key-type parameter.
Set Public/Private Key for a User
ssh client user <username> identity <key-type> public-key <key>
ssh client user <username> identity <key-type> private-key <key>
Set the public or private key (of specified type) for the specified user name. This is an alternative
to generating the key in the above command and is also used for reverse mapping generated keys.
Remove Public/Private Keys for a User
no ssh client user <username> identity [<key-type>]
Removes the public/private keys for the specified user. Any private key file in a valid user SSH
directory is deleted.
Add a Public Key to a Key List
ssh client user <username> authorized-key sshv2 <key>
The specified key is added to the list of authorized sshv2 RSA or DSA public keys for this user
account. These keys can be used to log into the users account. The specified user must be a valid
account on the system. As keys are added, an implicit id is associated with the key. This is to make
key deletion easier.
Be aware that if a key is being pasted from a cut buffer and was displayed with a paging program,
it is likely that newline characters have been inserted, even if the output was not long enough to
require paging. Most likely
show command output will be displayed this way, as paging is enabled
by default in the CLI. One can specify
no cli session paging enable before doing the show
command to prevent the newlines from being inserted.
Remove Public Key From a Key List
no ssh client user <username> authorized-key sshv2 <key id>