EasyManua.ls Logo

Cisco Nexus 5000 Series - Specifying the Ssh Public Keys for User Accounts; Specifying the Ssh Public Keys in Open Ssh Format

Cisco Nexus 5000 Series
660 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Send feedback to nx5000-docfeedback@cisco.com
1-4
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
OL-16597-01
Chapter 1 Configuring SSH and Telnet
Configuring SSH
The following example shows how to generate an SSH server key:
switch# configure terminal
switch(config)# ssh key rsa 2048
switch(config)# exit
switch# show ssh key
switch# copy running-config startup-config
Specifying the SSH Public Keys for User Accounts
You can configure an SSH public key to log in using the SSH client without being prompted for a
password. You can specify the SSH public key in one of three different formats:
Open SSH format
IETF SECSH format
Public Key Certificate in PEM format
Specifying the SSH Public Keys in Open SSH Format
You can specify the SSH public keys in SSH format for user accounts.
To specify the SSH public keys in open SSH format, generate an SSH public key in open SSH format
and perform this task:
The following example shows how to specify an SSH public keys in open SSH format:
switch# configure terminal
switch(config)# switch(config)# username User1 sshkey ssh-rsa
AAAAB3NzaC1yc2EAAAABIwAAAIEAy19oF6QaZl9G+3f1XswK3OiW4H7YyUyuA50rv7gsEPjhOBYmsi6PAVKui1nIf/
DQhum+lJNqJP/eLowb7ubO+lVKRXFY/G+lJNIQW3g9igG30c6k6+XVn+NjnI1B7ihvpVh7dLddMOXwOnXHYshXmSiH
3UD/vKyziEh5S4Tplx8=
switch(config)# exit
switch# show user-account
switch# copy running-config startup-config
Command Purpose
Step 1
switch# configure terminal
Enters configuration mode.
Step 2
switch(config)# username username sshkey
ssh-key
Configures the SSH public key in SSH format.
Step 3
switch(config)# exit
Exits global configuration mode.
Step 4
switch# show user-account
(Optional) Displays the user account
configuration.
Step 5
switch# copy running-config startup-config
(Optional) Copies the running configuration to
the startup configuration.

Table of Contents

Other manuals for Cisco Nexus 5000 Series

Related product manuals