[Tutorial] How to enable SSH on Cisco Routers on GNS?
Автор: Sudhir Yadav
Загружено: 2015-12-01
Просмотров: 360
Описание:
For enabling SSH on cisco router,
Firstly, we have change the hostname from default and set a ip domain name which is required to generate RSA key pairs, it prompt to ask the size of the key in bits that i have entered 1024 bits. These key pairs are required to establish an SSH connection.
Secondly we have to create some credentials with certain privilege level, as you guys can see i have created two, one with default and other with privilege level 15. Then i have changed SSH version to 2.
Lastly we need to enable VTY lines and issue command "login local" and "transport input ssh".
Now the router is SSH enabled and we can access it on other devices.
On R2, the command to access R1 via SSH is "ssh -l username *ip_of_R1*"
"-l" this option requires a username to initiate ssh connection
R1_SSH_Configuration:
##hostname LabRouter
##ip domain-name labgns.com
##crypto key generate rsa // it will prompt asking the size
##username cisco password cisco
##username sshv1 privilege 15 password cisco
##ip ssh version 2 // changing SSH version
##line vty 0 6 // Enabling 7 vty lines
##login local
##transport input ssh // Enable SSH input
##end
Accessing R1 on R2 via SSH:
##ssh -l cisco 10.1.1.1 // accessing by user cisco
##ssh -l sshv1 10.1.1.1 // accessing by user sshv1
If you want to do more with SSH, just type " ip ssh ? " in configuration mode. There will be a list of commands, so use them to change the parameters such as default port or timeouts, etc.
PS: password, username and domain name can be anything you want to, just remember username and passwords are case sensitive.
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: