Specifying The Ssh Public Keys In Ietf Secsh Format; Specifying The Ssh Public Keys In Pem-Formatted Public Key Certificate Form - Cisco AP775A - Nexus Converged Network Switch 5010 Configuration Manual

Cli software configuration guide
Hide thumbs Also See for AP775A - Nexus Converged Network Switch 5010:
Table of Contents

Advertisement

Specifying the SSH Public Keys in IETF SECSH Format

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:
Procedure
Step 1
Step 2
Step 3
Step 4
Step 5
Step 6
The following example shows how to specify the SSH public keys in the IETF SECSH format:
switch#copy tftp://10.10.1.1/secsh_file.pub bootflash:secsh_file.pub
switch# configure terminal
switch(config)# username User1 sshkey file bootflash:secsh_file.pub
switch(config)# exit
switch# show user-account
switch# copy running-config startup-config

Specifying the SSH Public Keys in PEM-Formatted Public Key Certificate Form

You can specify the SSH public keys in PEM-formatted Public Key Certificate form for user accounts.
To specify the SSH public keys in PEM-formatted Public Key Certificate form, generate an SSH public key
in PEM-Formatted Public Key Certificate form and perform this task:
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
272
Command or Action
switch# copy server-file bootflash:
filename
switch# configure terminal
switch(config)# username username
sshkey file filename
switch(config)# exit
switch# show user-account
switch# copy running-config
startup-config
Configuring SSH and Telnet
Purpose
Downloads the file containing the SSH key in IETF
SECSH format from a server. The server can be
FTP, SCP, SFTP, or TFTP.
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.
OL-16597-01

Advertisement

Table of Contents
loading

Table of Contents