Конфігурації SSH на маршрутизаторах Cisco в Packet Tracer - CCNA Lab
Зображення топології

Завдання: налаштувати SSH на маршрутизаторі R2
Router 1
R1(config)#interface fastEthernet 0/0
R1(config-if)#ip address 192.168.1.1 255.255.255.0
R1(config-if)#no shutdown
Router 3
R3(config)#int fastEthernet 0/0
R3(config-if)#ip address 192.168.2.3 255.255.255.0
R3(config-if)#no shutdown
Router 2
R2(config)#int fastEthernet 0/0
R2(config-if)#ip address 192.168.1.2 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#int fastEthernet 0/1
R2(config-if)#ip address 192.168.2.2 255.255.255.0 R2(config-if)#no shutdown
Крок 1: Встановити параметри маршрутизатора R2(config)#ip domain-name ccna5.com
Крок 2: Створення асиметричних ключів
R2(config)#crypto key generate rsa
The name for the keys will be: R2.ccna5.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]:
% Generating 512 bit RSA keys, keys will be non-exportable...[OK]
Крок 3: Налаштування SSH тайм-аути та ім'я користувача
R2(config)#ip ssh time-out 15
R2(config)#ip ssh authentication-retries 2
R2(config)#username student password cisco
Крок 4: Налаштування локальної аутентифікації і VTY
R2(config)#line vty 0 4
R2(config-line)#transport input ssh
R2(config-line)#login local
Переконайтеся, SSH працює
R1#ssh -l student 192.168.1.2
Open
Password:
|