Server Topic
   >  Introduction to OpenSSH
   >  Installing OpenSSH
   >  Starting & Stopping OpenSSH
   >  OpenSSH Configuration


Stopping and Starting OpenSSH

Checking if the SSH Daemon is Running

When SSH is started, it creates a background process (-or daemon) called sshd. You can verify if sshd is running by using the ps command:

$  ps -ef | grep sshd

If you see output similar to the following, then sshd is running:

$ ps -ef | grep sshd
root       848     1  0 08:58 ?        00:00:00 /usr/sbin/sshd -D
fredb     3380  3332  0 11:12 pts/0    00:00:00 grep --color=auto sshd

Stopping and Starting SSH

You can stop the SSH daemon (sshd) using:

$  sudo /etc/init.d/ssh stop

You can start the SSH daemon using:

$  sudo /etc/init.d/ssh start

You can restart the SSH daemon (-i.e. to read an updated /etc/ssh/sshd_config file) using:

$  sudo /etc/init.d/ssh restart

HomeSite IndexDesktop GuideServer GuideHints and TipsHardware CornerVideo SectionContact Us

 sitelock verified Firefox Download Button