Restart the SSH service from the command line

To restart the ssh service, you will need to be logged in as root, then you can run

service sshd restart

or you could alternatively use

/etc/init.d/sshd restart
Leave a Reply

Your email address will not be published. Required fields are marked *