How to restart SSH (restarting SSHD) remotely?

There are a few different ways to restart SSHD remotely.
You will need root access in order to do this.

1) /etc/init.d/sshd restart

2) kill `cat /var/run/sshd.pid` && /usr/sbin/sshd


Didn't find what you were looking for? Try these links:
  • Thanks, you saved me an hour today.
    V

  • Just added this to my unix help.txt cheers m8 also hour saved

  • Glad it was helpful to you!

You can follow any responses to this entry through the RSS 2.0 feed.

Trackbacks / Pingbacks