FAQ banner
Get the Help and Supports!

This help center can answer your questions about customer services, products tech support, network issues.
Select a topic to get started.

ICT Tech Savings Week
2025 MEGA SALE | In-Stock & Budget-Friendly for Every Project

How to Enable SSH on Cisco Switch?


Secure Shell (SSH) is the recommended protocol to securely manage Cisco switches remotely. This FAQ provides concise answers and essential steps to enable SSH on Cisco Catalyst switches, helping you protect your network devices from unauthorized access.

To enable SSH on a Cisco switch, follow these essential steps:

  1. Configure hostname and domain name:
configure terminal
hostname MySwitch
ip domain-name example.local
  1. Create a local user with admin privileges:
username admin privilege 15 password YourSecurePassword
  1. Generate RSA keys:
crypto key generate rsa modulus 2048
  1. Enable SSH version 2:
ip ssh version 2
  1. Restrict VTY lines to accept only SSH and use local login:
line vty 0 4
transport input ssh
login local
  1. Save the configuration:
copy running-config startup-config

For more detailed configuration steps and advanced SSH security practices, please see our full guide: How to Configure SSH on Cisco Switch


What is the recommended RSA key size for SSH on Cisco switches?

The recommended RSA key modulus size is 2048 bits for strong encryption.


Can I enable SSH on Cisco Catalyst 2960 switches?

Yes, SSH can be configured on Catalyst 2960 switches if they have updated IOS firmware.


Can I enable SSH on Cisco 350 switches?

Yes, the process to enable SSH on Cisco 350 switches (such as the Cisco SG350 series) is similar. You need to create a user, configure the IP domain name, generate RSA keys, enable SSH version 2, and apply it on VTY lines. Refer to your specific Cisco 350 switch model documentation for any menu-based differences if using the web interface.


How do I disable Telnet after enabling SSH?

Configure VTY lines to accept only SSH connections by using:

line vty 0 15
transport input ssh


How to test SSH connection to Cisco switch?

From your management PC, use an SSH client like this:

ssh -l admin 

A successful login indicates SSH is working.


Categories: Product FAQs Switches