카테고리 없음

Cisco GNS 라우터, 스위치 장비 SSH 설정

후추멍멍이 2022. 5. 12. 13:55
ESW1#
ESW1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
ESW1(config)#int vl
ESW1(config)#int vlan 1
ESW1(config-if)#ip add 10.8.1.5 255.255.255.0
ESW1(config-if)#no sh
ESW1(config-if)#
*Mar  1 00:03:25.771: %LINK-3-UPDOWN: Interface Vlan1, changed state to up
*Mar  1 00:03:26.771: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up
ESW1(config-if)#end



ESW1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
ESW1(config)#ip domain-name huchu.com
ESW1(config)#crypto key generate rsa
*Mar  1 00:03:54.379: %SYS-5-CONFIG_I: Configured from console by console
ESW1(config)#crypto key generate rsa
The name for the keys will be: ESW1.huchu.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]: 2048
% Generating 2048 bit RSA keys, keys will be non-exportable...[OK]



ESW1(config)#
*Mar  1 00:04:07.063: %SSH-5-ENABLED: SSH 1.99 has been enabled
ESW1(config)#ip ssh version 2
ESW1(config)#username
ESW1(config)#username huchu password cisco
ESW1(config)#enable secret cisco
ESW1(config)#int vlan 1
ESW1(config)#line vty 0 4
ESW1(config-line)#password cisco
ESW1(config-line)#login local
ESW1(config-line)#exit
ESW1(config)#ip ssh version 2
ESW1(config)#end




*Mar  1 00:18:34.647: %SYS-5-CONFIG_I: Configured from console by console
ESW1#ssh -l huchu 10.8.1.1

Password:

R1>ena
Password: