Results 1 to 5 of 5
hey guys
i have this small problem
i disabled ssh and kept ssh2 runing only on port 2222 but still if i ssh on port 22 i get access
can ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 04-15-2003 #1Just Joined!
- Join Date
- Mar 2003
- Posts
- 84
ssh2 and port 22
hey guys
i have this small problem
i disabled ssh and kept ssh2 runing only on port 2222 but still if i ssh on port 22 i get access
can u tell me how to close port 22 pleas??
thank you
-Dewey-
- 04-15-2003 #2Linux Newbie
- Join Date
- Apr 2003
- Location
- UK, Manchester
- Posts
- 147
Specify the port on which you want it to run, set it in the /etc/ssh/sshd_config.
Port 2222
Then restart the daemon either via the startup script or HUP the pid.
Why do you want to run it on another port ?
If it is to 'hide' that ssh is running it wont work.
- 04-16-2003 #3Just Joined!
- Join Date
- Mar 2003
- Posts
- 84
i already did that but i can still ssh on port 22 and i don't want that
i hop i made myself clear
thanks for ur help dude
-Dewey-
- 04-16-2003 #4Linux Newbie
- Join Date
- Apr 2003
- Location
- UK, Manchester
- Posts
- 147
Have a look through the sshd_config file and check that you only have one port set to use.
- 04-19-2003 #5Linux Guru
- Join Date
- Apr 2003
- Location
- London, UK
- Posts
- 3,284
If you cant work it out, just block port 22 with an IPTABLES rule.


Reply With Quote
