본문 바로가기
IT운영/네트워크

[네트워크] 라우터 SSH 설정 방법

by Torobeen 2024. 6. 7.
반응형

(메모장)

 

R1>enable

 

Password:

 

R1#conf t

 

Enter configuration commands, one per line. End with CNTL/Z.

 

R1(config)#hostname SecureRouter

 

SecureRouter(config)#aaa new-model

 

SecureRouter(config)#username cisco password 0 cisco

 

SecureRouter(config)#line vty 0 4

 

SecureRouter(config-line)#transport input ssh

 

SecureRouter(config-line)#ip domain-name rtp.cisco.com

 

 

SecureRouter(config)#crypto key generate rsa

 

The name for the keys will be: SecureRouter.rtp.cisco.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]

 

 

 

SecureRouter(config)#ip ssh time-out 60

 

SecureRouter(config)#ip ssh authentication-retries 2

 

SecureRouter(config)#int f0/0

 

SecureRouter(config-if)#ip address 10.13.1.99 255.255.255.0

 

SecureRouter(config-if)#

반응형