Cisco - Enable SSH login
Setting the Enable Mode Password
|
|
To enable login access to the
vty
lines, you must first set the password for theenable
mode. Otherwise, you will not be able to enter theenable
mode after logging in.
Configure a Domain Name
|
|
Using
ip domain-name
to setup domain nameccna.com
Generate an RSA key pair
|
|
How many bit in the modulus[512]:1024
Using
1024
-bit encryption (default is 512).
Enable SSH Connection
|
|
Specify the version of SSH is 2
Create Local Account
|
|
Command | Description |
---|---|
username cisco secret ccna | Create a user account with the username “cisco” and a secret password of “ccna”. |
privilege 15 | Set the user account to the highest privilege level (i.e., level 15), which provides full access to all commands on the device. |
Configure the VTY lines to use SSH
|
|
Enabling 0-4 VTY connections (i.e., maximum of 5 simultaneous connections).
Use the local account for authentication
|
|
Use the local username and password
Use SSH transport
|
|
Save the configuration
|
|
Testing SSH Connection
|
|
Test logging in to another Cisco device.
10.255.255.254 is the IP address of the router.
Or use a Windows SSH terminal.
After completing these steps, you should be able to SSH into the Cisco device using the configured username and password.