Users Guide

Table Of Contents
Parameters
username — Enter the user name of the remote client. This value is the user name configured 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 configure 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 configuration
for a specified user name.
Locate the public keys on a remote client in the ~/.ssh/id_rsa.pub file. Use the public key as the sshkey-
string or publickey-string parameter.
Supported on the MX9116n and MX5108n switches in Full Switch mode starting in release 10.4.1.0. Also supported
in SmartFabric mode starting in release 10.5.0.1.
Example
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 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
username sshkey filename
Enables SSH password-less login for remote clients using multiple public keys. A remote client is not prompted to enter a password.
Syntax
username username sshkey filename filepath
Parameters
username — Enter an OS10 user name who logs in on a remote client. This value is the user name
configured using the username password role command.
filepath — Enter the absolute path name of the local file containing the public keys used by remote
devices to log in to the OS10 switch.
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
Before you use the command, locate the public keys on a remote client in the ~/.ssh/id_rsa.pub file. Create
a text file and copy the SSH public keys on the remote client into the file. Enter each public key on a separate line.
Download the file to your home OS10 directory.
962 Security