NetOps Toolkit

Cisco IOS

SSH Setup Generator

Generate complete SSH configuration for Cisco devices

What is SSH?

Secure Shell (SSH) gives encrypted remote CLI access to your devices. It replaces Telnet, which sends usernames and passwords in clear text.

  • Always use SSH version 2 only.
  • Routers and switches need an RSA key pair to accept SSH connections.
  • Use local users or AAA (RADIUS/TACACS+) instead of simple line passwords.

SSH Building Blocks

ComponentExamplePurpose
Hostnamehostname SW-CORE-01Used in the device identity and prompts.
Domainip domain-name lab.localRequired for RSA key generation.
Keyscrypto key generate rsa modulus 2048Creates SSH server keys.
Userusername admin secret Str0ngP@ss!Login account with encrypted password.
VTY linesline vty 0 15Enable SSH and choose login method.

SSH Hardening Tips

  • Disable Telnet: transport input ssh only on VTY lines.
  • Use exec-timeout to log out idle sessions automatically.
  • Restrict source IPs with an ACL applied to management lines.