

The “ exit” command takes us out of the line configuration mode to global configuration mode. The “ login local” command sets the login to local router. The “ line vty 0 15″ command selects the vty lines from 0 to 15 for line configuration.

The “ username admin password 123456″ command sets the username and password to admin and 123456 respectively. It’s time to set login credentials on the router. The domain name is also needed for setting name for encryption keys. The “ ip domain-name ” command sets the domain name for the router. So it is necessary to change the default name of the router. The name of the router is used to generate names for the keys by the SSH protocol.

The “ hostname R1″ command changes the default name of router to R1. The command “ conf t” enables global configuration mode of the switch or router. Let’s see how to enable SSH on cisco routers and switches using IOS. This makes it difficult for hackers to detect the credentials. SSH protocol is as same as telnet but it uses encryption during the communication. To overcome this problem, we should use SSH protocol for remote configuration of the switch or router. So if you happen to type a username ad password for authentication with the switch from a remote location, it will be passed in plain text and anyone sniffing on the network can easily find out your login credentials.

Remote configuration of a switch/router can be done using telnet or SSH protocols. The second and easy option is the remote configuration of the switch or router. This is good but imagine how much trouble it is to go near each and every device to configure it. One is to go near the switch or router to configure it. To configure a switch or router on a far off location, there are two choices. Imagine you are a network administrator in a large organization with number of switches and routers. In this howto, we will see how to enable SSH on Cisco Routers and Switches.
