The command to restart ssh are as follows (you must login as root user):
CentOS / RHEL / Fedora / Redhat Linux Restart SSH
# /etc/init.d/sshd restartOR
# service sshd restartDebian / Ubuntu Linux Restart SSH
# /etc/init.d/ssh restartOR
# service ssh restartFreeBSD Restart SSH
# /etc/rc.d/sshd restartUNIX Restart SSH
# kill -HUP `cat /var/run/sshd.pid`Please note that the location of /var/run/sshd.pid may change. So just search a bit through /var/run/ directory.
No comments:
Post a Comment