Specifying The Ssh Public Keys In Ietf Secsh Format - Cisco Nexus 5000 Series Configuration Manual

Nx-os security configuration guide
Hide thumbs Also See for Nexus 5000 Series:
Table of Contents

Advertisement

Specifying the SSH Public Keys in IETF SECSH Format

DETAILED STEPS
Command or Action
Step 1
switch# configure terminal
Step 2
switch(config)# username username sshkey ssh-key
Step 3
switch(config)# exit
Step 4
switch# show user-account
Step 5
switch# copy running-config startup-config
The following example shows how to specify an SSH public keys in open SSH format:
switch# configure terminal
switch(config)# username User1 sshkey ssh-rsa
AAAAB3NzaC1yc2EAAAABIwAAAIEAri3mQy4W1AV9Y2t2hrEWgbUEYz
CfTPO5B8LRkedn56BEy2N9ZcdpqE6aqJLZwfZcTFEzaAAZp9AS86dgBAjsKGs7UxnhGySr8ZELv+DQBsDQH6rZt0KR+2Da8hJD4Z
XIeccWk0gS1DQUNZ300xstQsYZUtqnx1bvm5Ninn0McNinn0Mc=
switch(config)# exit
switch# show user-account
switch# copy running-config startup-config
The username command example above is a single line that has been broken for legibility.
Note
Specifying the SSH Public Keys in IETF SECSH Format
You can specify the SSH public keys in IETF SECSH format for user accounts.
To specify the SSH public keys in IETF SECSH format, generate an SSH public key in IETF SCHSH format,
and perform this task:
SUMMARY STEPS
1. switch# copy server-file bootflash: filename
2. switch# configure terminal
3. switch(config)# username username sshkey file filename
4. switch(config)# exit
5. (Optional) switch# show user-account
6. (Optional) switch# copy running-config startup-config
Cisco Nexus 5000 Series NX-OS Security Configuration Guide
64
Purpose
Enters configuration mode.
Configures the SSH public key in SSH format.
Exits global configuration mode.
(Optional)
Displays the user account configuration.
(Optional)
Copies the running configuration to the startup
configuration.
Configuring SSH and Telnet
OL-20919-01

Advertisement

Table of Contents
loading

Table of Contents