30.06.2015 Views

8.28 MB - Edge-Core

8.28 MB - Edge-Core

8.28 MB - Edge-Core

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

4<br />

Command Line Interface<br />

delete public-key<br />

This command deletes the specified user’s public key.<br />

Syntax<br />

delete public-key username [dsa | rsa]<br />

• username – Name of an SSH user. (Range: 1-8 characters)<br />

• dsa – DSA public key type.<br />

• rsa – RSA public key type.<br />

Default Setting<br />

Deletes both the DSA and RSA key.<br />

Command Mode<br />

Privileged Exec<br />

Example<br />

Console#delete public-key admin dsa<br />

Console#<br />

ip ssh crypto host-key generate<br />

This command generates the host key pair (i.e., public and private).<br />

Syntax<br />

ip ssh crypto host-key generate [dsa | rsa]<br />

• dsa – DSA (Version 2) key type.<br />

• rsa – RSA (Version 1) key type.<br />

Default Setting<br />

Generates both the DSA and RSA key pairs.<br />

Command Mode<br />

Privileged Exec<br />

Command Usage<br />

• This command stores the host key pair in memory (i.e., RAM). Use the ip ssh<br />

save host-key command to save the host key pair to flash memory.<br />

• Some SSH client programs automatically add the public key to the known<br />

hosts file as part of the configuration process. Otherwise, you must manually<br />

create a known hosts file and place the host public key in it.<br />

• The SSH server uses this host key to negotiate a session key and encryption<br />

method with the client trying to connect to it.<br />

Example<br />

Console#ip ssh crypto host-key generate dsa<br />

Console#<br />

4-38

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

Saved successfully!

Ooh no, something went wrong!