Creating a client public-key text file
Comments in public-key files may appear in a SSH client application's generated public key. While such comments may help to distinguish one key from another, they do not pose any restriction on the use of a key by multiple clients and/or users.
Public key illustrations such as the key shown in A client public key
usually include line breaks as a method for showing the whole key. However, in practice, line breaks in a public key will cause errors resulting in authentication failure.
The actual content of a public-key entry in a public-key file is determined by the SSH client application generating the key. Although you can manually add or edit any comments the client application adds to the end of the key.
Syntax:
copy <tftp|sftp> pub-key-file <ip-address> <filename>[<append|manager|operator>]
copy <tftp|sftp> pub-key-file <ip-address> <filename>[<append|manager|operator>][oobm]
Copies a public-key file from a TFTP server into flash memory in the switch.
The
append
option adds the keys for operator access.
The
manager
option replaces the keys for manager access; follow with the 'append' option to add the keys.
The
operator
option replaces the keys for operator access (default); follow with the 'append' option to add the keys.
The
oobm
option specifies that the traffic will go through the out-of-band management interface. If this option is not specified, the traffic goes through the data interface.
show crypto client-public-key [<manager|operator>][keylist-str][babble|fingerprint]
Displays the client public keys in the switch current client public-key file.
See SSH client public-key authentication for information about public keys saved in a configuration file.
The
babble
option converts the key data to phonetic hashes that are easier for visual comparisons.
The
fingerprint
option converts the key data to hexadecimal hashes that are for the same purpose.
The
keylist-str
selects keys to display (comma-delimited list).
The
manager
option allows you to select manager public keys
The
operator
option allows you to select operator public keys.
copy usb pub-key file
or SFTP can also be used to copy a public key file to the switch.
Copying and displaying a client public-key file containing two different client public keys for the same client
To copy a client public-key file named
clientkeys.txt
from a TFTP server at 10.38.252.195 and then display the file contents: