Sunday, 25 November 2007

securing vty with ssh

short but easy.
1. generate crypto key

R3(config)#ip domain-name test.com
R3(config)#crypto key generate rsa general-keys modulus 512
The name for the keys will be: R3.test.com

% The key modulus size is 512 bits
% Generating 512 bit RSA keys ...[OK]

R3(config)#
*Nov 25 19:45:10.421: %SSH-5-ENABLED: SSH 1.99 has been enabled
R3(config)#user cisco pas cisco
R3(config)#line vty 0 4
R3(config-line)#login local
R3(config-line)#tra
R3(config-line)#transport in ssh
R3(config-line)#^Z
R3#


test it:
R6#ssh -l cisco 24.1.3.3

Password:

R3>

thats it

cco resorces:
http://www.cisco.com/warp/public/707/ssh.shtml

No comments: