ssh listening on port 22
I have every line commented in inetd.conf, yet ssh is listening on port 22. Obviously I can cure this by deleting the ssh deamon, as I'm not using it anyway, I just would like to know how this is listening when every line under inetd.conf is commented out?
|
sharpie,
sshd is typically run independent of inetd. Check your init scripts (/etc/init.d, /etc/rc.d, /etc/init.d/rc.?) to see where it is run. You can probably just rename the binary (/usr/sbin/sshd -> /usr/sbin/sshd-norun). Good Luck, chris |
chmod -x /etc/rc.d/rc.sshd
|
service sshd stop?
|
Hi,
why not update-rc.d -f ssh remove this won't cause a slow shutdown while trying to stop a non existent daemon or an error message cu doehn |
Edit /etc/ssh/sshd_config and change the port you want it to listen on. If you want to stop it altogether:
chkconfig --level 23456 sshd off then service sshd stop |
You guys must not be familure with Slackware...
Aeiri got it right. |
Just make it nonexecutable? Won't that just generate errors in your startup log when it's called?
|
Slackware checks if the file exists and is executable before it tries to execute it, so there wouldn't be any errors if the file wasn't there, or was non-executable.
|
Cool, thanks.
|
All times are GMT -5. The time now is 04:59 PM. |