2013年6月6日 星期四

Security SSH Router Config

Security SSH Router Config



Router#
Router#
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#
R1(config)#int fa0/0
R1(config-if)#ip add 10.1.1.1 255.255.255.0
R1(config-if)#no sh
Router(config)#username jerry privilege 15 secret abc
Router(config)#
Router(config)#hostname R1
R1(config)#ip domain-name sshtest.com
R1(config)#crypto key generate rsa
The name for the keys will be: R1.sshtest.com
Choose the size of the key modulus in the range of 360 to 2048 for your
  General Purpose Keys. Choosing a key modulus greater than 512 may take
  a few minutes.

How many bits in the modulus [512]: 1024
% Generating 1024 bit RSA keys, keys will be non-exportable...[OK]

R1(config)#
R1(config)#ip ssh version 2
R1(config)#
R1(config)#line vty 0 4
R1(config-line)#transport input ssh
R1(config-line)#login local


//-------------------------------
  Switch to your PC
//-------------------------------
login as: jerry
Using keyboard-interactive authentication.
Password:

R1#
R1#
R1#







沒有留言:

張貼留言