Everything you need to configure SSH correctly on Cisco IOS-XE switches — from basic setup to brute-force protection and management ACLs.
Generate SSH-hardened config →Telnet sends every keystroke — including your password — in cleartext across the network. Any packet capture between you and the switch will reveal your credentials instantly. SSH encrypts the entire session, but not all SSH configurations are equally secure: SSHv1 has well-documented cryptographic weaknesses and should never be used in production.
A misconfigured SSH setup leaves your management plane exposed. Default IOS-XE allows both SSH and Telnet on VTY lines, uses short session timeouts, and has no brute-force protection. Getting SSH configuration right is one of the highest-impact, lowest-effort hardening steps you can take on any Cisco switch.
ip domain-name company.local crypto key generate rsa modulus 2048 ip ssh version 2 no ip ssh v1-compat
no ip ssh v1-compat explicitly disables SSHv1 fallback.ip ssh time-out 60 ip ssh authentication-retries 3
line vty 0 15 transport input ssh exec-timeout 10 0 logging synchronous login local
transport input ssh disables Telnet entirely. exec-timeout 10 0 kills idle sessions after 10 minutes. Always configure all VTY lines (0 through 15) — leaving any unconfigured creates a Telnet backdoor.login block-for 120 attempts 3 within 60 login on-failure log login on-success log
login on-failure log sends a syslog message for every failed attempt — visible in your SIEM.ip access-list standard MGMT-ACCESS permit 10.10.99.0 0.0.0.255 deny any log line vty 0 15 access-class MGMT-ACCESS in
ip domain-name before generating RSA keys — crypto key generate rsa will fail with an error or generate a key with a useless name. Always set the domain name first.transport input all or transport input telnet ssh allows cleartext Telnet. Always set transport input ssh exclusively.access-class on VTY lines, any IP address on any reachable network can attempt SSH. Restrict to your management subnet with a standard ACL.SSH v2, timeout, brute-force protection and management ACL — all applied automatically.
Generate my config →