To restart sshd without restarting your whole system, enter the following command as root
RedHat and Fedora Core Linux
/sbin/service sshd restartSuse linux
/etc/rc.d/sshd restartDebian/Ubuntu
/etc/init.d/sshd restartSolaris 9 and below
/etc/init.d/sshd stop/etc/init.d/sshd start
Solaris 10
svcadm disable sshsvcadm enable ssh
AIX
stopsrc -s sshdstartsrc -s sshd
HP-UX
/sbin/init.d/secsh stop/sbin/init.d/secsh start
Reference: http://www.starnet.com/xwin32kb/restart_sshd
No comments:
Post a Comment