August 2, 2005
Cisco Tip of the day
How to setup SSH access on a non standard (alternate) port.
There is two steps to setup ssh on a non standard port.
1. Declare which port SSH will be on and what rotary group it is in.
2. Configure vty’s to accept ssh and to use the rotary group created in step one.
Step one – This command defines what port the router will be monitoring for incoming ssh sessions. The rotary group is needed for grouping this command with a vty line. Until the vty is configured to refer to the rotary group, this command has no effect.
ip ssh port 2222 rotary 1
Step Two – These commands just allow local login, specify the password, what rotary group to bind to, and to turn on ssh only. No telnet here. Without the rotary command, ssh would normally be running on port 22, which if you are running NAT at home, it would intercept your attemped ssh sessions into your *nix boxes. Once you give it the rotary command, the vty interface will take on the properties of that rotary group. In this case, what we defined in step one.
line vty 0 4
login
password 0 blah
rotary 1
transport input ssh
transport output all
Filed by RawCode at 3:31 am under Cisco, Networking, Security
Comments Off