Restart SSH service
After you change some SSH configuration, you must :
- Reboot machine - easiest way but always not possibleOR
- Restart SSH service - sshd
Run command using root :
Debian / Ubuntu
/etc/init.d/sshd restart
RedHat and Fedora Linux
/sbin/service sshd restart
Suse linux
/etc/rc.d/sshd restart
Solaris 10
svcadm disable ssh
svcadm enable ssh
Solaris 9 and below
/etc/init.d/sshd stop
/etc/init.d/sshd start
AIX
stopsrc -s sshd
startsrc -s sshd
HP-UX
/sbin/init.d/secsh stop
/sbin/init.d/secsh start
No comments:
Post a Comment
Note: only a member of this blog may post a comment.