Enable SSH access on a Cisco router
The following are the steps to setup SSH access on a Cisco router:
1: Configure Domain name
2: Generate Crypto keys
3: enable VTY ports for SSH
The commands for the above steps are:
1: ip domain-name <name>
example: ip domain ezref.info
2: crypto key generate rsa
This generate a crypto keys using the RSA algorithm, Cisco recommends a 1024 BITS keys
3: transport input ssh
You need to type this command under line configuration mode. SSH in the above command can be replaced with telnet or all to allow access through both the protocols.
Keep in mind that SSH requires a username and password, thus you need to have a local database of username and password stored locally.