[afnog] changing ssh port on a cisco router

joseph mpora klashniv at gmail.com
Wed Jul 20 13:32:26 UTC 2011


Dear All,

Am having trouble changing the port SSH listens on a cisco router. I
have been able to get it to listen on port 2000 but connections to
port 22 are also accepted.

I would like to only allow ssh connections on port 2000.

Below are the configs an using:

ip ssh port 2000 rotary 1
line con 0
line aux 0
line vty 0 4
 rotary 1
 transport preferred ssh
 transport input ssh
 transport output ssh
line vty 5 807
 rotary 1
 transport input ssh

Additional Information:

Cisco IOS Software, 2801 Software (C2801-SPSERVICESK9-M), Version
12.4(24)T4, RELEASE SOFTWARE (fc2)
ROM: System Bootstrap, Version 12.3(8r)T9, RELEASE SOFTWARE (fc1)
System image file is "flash:c2801-spservicesk9-mz.124-24.T4.bin"

Please let me know if what am trying to do is achievable and how it can be done.

Thank you.

Regards,
Joseph Mpora



More information about the afnog mailing list