Users Guide

Table Of Contents
username sshkey
Enables SSH password-less login using the public key for a remote client. The remote client is not prompted to enter a password.
Syntax
username username sshkey {sshkey-string | "ssh-rsa publickey-string"}
Parameters
username — Enter the user name of the remote client. This value is the user name congured with the
username password role command.
sshkey-string — Enter the text string used as the public key by a remote client device to log on to the
OS10 switch. If sshkey-string contains a blank space, enclose the string in double quotes (").
Default
The default SSH server keys are an RSA key generated using 2048 bits, an ECDSA key with 256 bits, and an
Ed2559 key with 256 bits.
Command Mode
CONFIGURATION
Usage Information
To congure multiple user names for SSH password-less login, use the username sshkey filename
command. The no username username sshkey command removes the SSH password-less conguration
for a specied user name.
Locate the public keys on a remote client in the ~/.ssh/id_rsa.pub le. Use the public key as the sshkey-
string or publickey-string parameter.
Example
OS10(config)# username user10 sshkey abcd
OS10(config)# username test sshkey "ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQBqJaD
wgBgQX1PPPSEyx+F5DVG2RpBH4Zm1YQApE5YJsKlt6RpeOIT1wnJP/o54p1nCeMu38i7/zCLwuW
t3XDVVMoSCb9Za89hebQ+f6XyNs4aMpyUk5RmuZTXqwnebUUuP3nPw/Y4lKkZJafWx125Ma7Ibw
fUM5wGdBu76j8mvwsWvNxrnkOsweo7Anp67p8Lsg+KBUsx3q8Fpc986qQfdrcEFOO1WraJR8wzY
1mbQw/C+Hm5Ap6Nr6DoXMWqKdKUr7jfte8ThARYZD8dvZeyzhk3nykYRQ39mqjXnOyEOiDl1e21
QUvI1cjcQPDXgFJUrKcc1yPiGUOH5"
OS10(config)# do show running-configuration users
username admin password $6$q9QBeYjZ$jfxzVqGhkxX3smxJSH9DDz7/3OJc6m5wjF8nnLD
7/VKx8SloIhp4NoGZs0I/UNwh8WVuxwfd9q4pWIgNs5BKH. role sysadmin
username user10 password $6$rounds=656000$G10VRFTJB291ekwo$iTGf0zd4bTUcBBpI
Vsbr6oStnUZMydN5lDs4WE6G3XHEtWbcKrGTeAo1wEF0cenEgRRPzi3SMmYyzAHCCC8wS0 role
sysadmin
username user10 sshkey abcd
username test sshkey "ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQBqJaDwgBgQX1PPPSEyx
+F5DVG2RpBH4Zm1YQApE5YJsKlt6RpeOIT1wnJP/o54p1nCeMu38i7/zCLwuWt3XDVVMoSCb9Za
89hebQ+f6XyNs4aMpyUk5RmuZTXqwnebUUuP3nPw/Y4lKkZJafWx125Ma7IbwfUM5wGdBu76j8m
vwsWvNxrnkOsweo7Anp67p8Lsg+KBUsx3q8Fpc986qQfdrcEFOO1WraJR8wzY1mbQw/C+Hm5Ap6
Nr6DoXMWqKdKUr7jfte8ThARYZD8dvZeyzhk3nykYRQ39mqjXnOyEOiDl1e21QUvI1cjcQPDXgF
JUrKcc1yPiGUOH5"
Supported Releases 10.4.1.0 or later
972 Security