SSH configuration on switch

SSH Configuration of catalyst switch

Picture 1 - simple topology for demonstration purpose. 

Picture 2 - Enable mode password, local user, and key generator settings.

Select key RSA with 1024 bits as the minimum requirement of SSH protocol version 2.

As I mentioned previously a few times, this is a good manner to name a new host. 

Enable mode password is required in SSH protocol.

Also we are setting local user with password for authorization.

Domain name is needed as well when SSH setup. 

Picture 3 - Version 1.99 of SSH protocol diplayed on the screen. 

The cisco switch Catalyst shows the SSH protocol version after the key generation process. 

Picture 4 - The SSH protocol version shown after prompted command from CLI.

It is important to ensure that all devices match to the same SSH version. In this case is version 1.99

Picture 5 - Virtual lines configured with local user login access.

We set up virtual lines 0-15 in this example to login local

Therefore, local users will be able to login to the switch. 

Important: select transport  to disable telnet!

Picture 6 - Read lines from the configuration file.

In the configuration file, we can read settings for virtual lines. In picture 6 we can see a few lines showing setup for virtual lines 0 - 15.

Picture 7 - Added IP address for switch management purposes. 

We added IP address to connect remotely with the switch. 

Picture 7 - Checked IP address of virtual interface for VLAN 1.

This basic but very handy command displays the status of switch ports, both physical and logical.


Picture 8 - Check PC network configuration using a command in the PC terminal.

We check IP address of PC connected to the switch on the same LAN.

Picture 9 - Ping from PC to switch.

We need to check the connectivity between the PC and switch. 

So, we can ping and check the transferred packets.

Picture 10 - Connection to switch using SSH protocol.

Finally, we were able to connect with switch from PC using SSH protocol.