Router# configure terminal
samnetwork(config)#hostname samnetwork
samnetwork(config)# username ipcisco password ipcisco_1 //Creating user for SSH
samnetwork(config)# line vty 0 7 //Configuring VTY ports
samnetwork(config-line)# transport input ssh //Type of connection
samnetwork(config-line)# access-class 1 in //Access-list to filter SSH capable IPs
samnetwork(config-line)# login local //Authentication with user&paswrd
samnetwork(config)# access-list 1 permit 10.0.0.0 0.0.0.255 //Permitted IPs
samnetwork(config)# interface gi0/0
samnetwork(config-if)# ip address 10.0.0.1 255.255.255.0
samnetwork(config-if)# no shutdown
samnetwork(config)# enable password cisco //Enable password
samnetwork(config)# ip domain-name IPCISCO //Creating domain name
samnetwork(config)# crypto key generate rsa //Generating key for SSH
*Mar xx 07:57:13.993: %SSH-5-ENABLED: SSH 1.99 has been enabled
cisco-ssh-configuration-on-gns3
On Router_2, we will configure only the ip address for the connection.
Router_2(config)# interface GigabitEthernet0/0
Router_2(config-if)# ip address 10.0.0.2 255.255.255.0
Router_2(config-if)# no shutdown