Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How To Restart SSH Service under Linux / UNIX
#1
Thumbs Up 
How do I restart SSH service under Linux or UNIX operating systems?
The command to restart ssh are as follows (you must login as root user):

CentOS / RHEL / Fedora / Redhat Linux Restart SSH
 
Code:
# /etc/init.d/sshd restart

OR
 
Code:
# service sshd restart

Debian / Ubuntu Linux Restart SSH
 
Code:
# /etc/init.d/ssh restart

OR
 
Code:
# service ssh restart

 FreeBSD Restart SSH
 
Code:
# /etc/rc.d/sshd restart

UNIX Restart SSH
 
Code:
# kill -HUP `cat /var/run/sshd.pid`


Idea Please note that the location of /var/run/sshd.pid may change. So just search a bit through /var/run/ directory.
[Image: logo.png]
Cheapest web hosting starting with the lowest price of $ 0.5
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)