How to change the SSH port no in Cisco devices

Design Connectivity 


 R-1#conf terminal

R-1(config)#ip ssh port 4401 rotary 1

R-1(config)#line vty 0 15

R-1(config-line)#rotary 1

R-1(config-line)#exit

R-1(config)#ip access-list extended SSH-PORT

R-1(config-ext-nacl)#permit tcp any any eq 4401

R-1(config-ext-nacl)#deny tcp any any eq 22

R-1(config-ext-nacl)#exit

R-1(config)#line vty 0 15

R-1(config-line)#access-class SSH-PORT in

R-1(config-line)#exit

R-1(config)#end

R-1#write memory

Here I got the Access

SSH to the Router using port no 4401






Comments