LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Start/stop SSH service? (https://www.linuxquestions.org/questions/debian-26/start-stop-ssh-service-813771/)

dilzniksan 06-12-2010 04:51 PM

Start/stop SSH service?
 
I changed the port SSH listens to and wanted to restart the service for the changes to take effect.

I tried "/etc/init.d/ssh stop" and got "Stopping OpenBSD Secure Shell server: sshd."

However "ps -C ssh" shows that ssh is still running. Furthermore when I tried "/etc/init.d/ssh restart" I got "OpenBSD Secure Shell server not in use (/etc/ssh/sshd_not_to_be_run)." Which leads me to believe the "/etc/init.d/ssh" commands were completely ineffectual.

So I am still trying to restart the ssh daemon.

Debian 5.0.4

Mr-Bisquit 06-12-2010 05:54 PM

Try restarting sshd with the word restart.

Have you rebooted?

dilzniksan 06-12-2010 07:36 PM

Still nothing
 
After reboot the changes made to the conf files did not seem to affect connection as ssh still only accepted port 22. I finally rtfm'd and enterd sshd -p with the port I needed and now everything works.

Mr-Bisquit 06-12-2010 08:47 PM

You shouldn't have to add the port number if you have it in sshd_config and ssh_config.


All times are GMT -5. The time now is 12:25 PM.