

In this example, 192.168.101.2 is the management ip-address of the switch. myswitch# sh ip sshĪuthentication timeout: 120 secs Authentication retries: 3Īfter the above configurations, login from a remote machine to verify that you can ssh to this cisco switch. Verify SSH accessįrom the switch, if you do ‘sh ip ssh’, it will confirm that the SSH is enabled on this cisco device. Make sure the password-encryption service is turned-on, which will encrypt the password, and when you do “sh run”, you’ll seee only the encrypted password and not clear-text password. Note: If you don’t have the enable password setup properly, do it now. Myswitch(config)# username ramesh password mypassword myswitch# config tĮnter configuration commands, one per line. If you don’t have an username created already, do it as shown below. If you have not set the console line yet, set it to the following values. Set the login to local, and password to 7. Setup the following line vty configuration parameters, where input transport is set to SSH. % Generating 1024 bit RSA keys, keys will be non-exportable.Īlso, if you are running on an older Cisco IOS image, it is highly recommended that you upgrade to latest Cisco IOS. Choosing a key modulus greater than 512 may take The name for the keys will be: Ĭhoose the size of the key modulus in the range of 360 to 2048 for your myswitch(config)# crypto key generate rsa So, generate these using crypto command as shown below. The switch or router should have RSA keys that it will use during the SSH process. Next, make sure the switch has a hostname and domain-name set properly. The default gateway points to the firewall, which is 192.168.101.1 # ip default-gateway 192.168.101.1

In the following example, the management ip address is set as 192.168.101.2 in the 101 VLAN.

If this is already done, skip to the next step. For example, assign default gateway, assign management ip-address, etc.

Setup Management IPįirst, make sure you have performed basic network configurations on your switch. Once you enable SSH, you can access it remotely using PuTTY or any other SSH client. Follow the steps mentioned below, which will enable SSH access to your Cisco devices. By default, when you configure a Cisco device, you have to use the console cable and connect directly to the system to access it.
