22.05.2017 Views

nx.os.and.cisco.nexus.switching.2nd.edition.1587143046

Nexus Switching 2nd Edition

Nexus Switching 2nd Edition

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Note<br />

• Be sure to have an SSH Server key-pair with the appropriate version before enabling<br />

the SSH service. You can generate the SSH server key-pair according to the SSH<br />

Client version used. The SSH service accepts two types of key-pairs for use by SSH<br />

version 2:<br />

• The dsa option generates the DSA key-pair for the SSH version 2 protocol.<br />

• The rsa option generates the RSA key-pair for the SSH version 2 protocol.<br />

• SSH supports the following public key formats:<br />

• OpenSSH<br />

• IETF Secure Shell (SECSH)<br />

Ensure that you are in the correct VDC (or use the switchto vdc comm<strong>and</strong>).<br />

To enable the SSH modular process, enter the following comm<strong>and</strong>s:<br />

Click here to view code image<br />

Congo# conf t<br />

Enter configuration comm<strong>and</strong>s, one per line. End with<br />

CNTL/Z.<br />

Congo(config)# feature ssh<br />

Example 5-19 shows how to generate SSH Server keys. The default SSH Server key is an<br />

RSA key generated using 2048 per the code in Example 5-19 bits.<br />

Example 5-19. Generating a 2048-Bit SSH RSA Server Key<br />

Click here to view code image<br />

Congo# conf t<br />

Enter configuration comm<strong>and</strong>s, one per line. End with<br />

CNTL/Z.<br />

Congo(config)# ssh key rsa 2048<br />

rsa keys already present, use force option to overwrite<br />

them<br />

Congo(config)# ssh key rsa 2048 force<br />

deleting old rsa key.....<br />

generating rsa key(2048 bits).....<br />

generated rsa key<br />

Congo(config)# feature ssh<br />

Congo(config)# exit<br />

Example 5-20 shows how to verify the SSH Server keys that were generated on the NX-OS

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!