closing port 22

Unanswered Question
Jun 27th, 2004

Ey there, very ease question, but i just dont know how to do it.

I need to close port 22 on a cisco router, what command do i need to do this?

And is there a way to see what ports are open?

Thank you!

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Average Rating: 0 (0 ratings)
3cayers Mon, 06/28/2004 - 09:06

If you are running an SSH version of IOS and want to disable SSH on the router itself, you will need to remove "transport input ssh" from your line config.

conf t

line vty 0 4

transport input telnet

If you have a machine behind the router and want to disallow port 22 access to this machine, you will need to create an extended IP access-list and apply it.

conf t

access-list 199 deny tcp any any eq 22

access-list 199 permit ip any any

int f0/0 (connection to internet)

ip access-group 199 in

Actions

Login or Register to take actions

This Discussion

Posted June 27, 2004 at 10:40 PM
Stats:
Replies:1 Avg. Rating:
Views:307 Votes:0
Shares:0
Tags: No tags.

Discussions Leaderboard

Rank Username Points
1 2,069
2 1,732
3 1,675
4 1,624
5 1,529