Ubuntu Linux: Start / Stop / Restart OpenSSH ( SSH ) Server

 

need to provide a remote access to my Ubuntu Linux server. How do I start / stop OR restart the ssh server under Ubuntu Linux operating system?

You need to run a script called /etc/init.d/ssh to stop / start / restart OpenSSH server. You can also use the service command to control a System V init script.

 

Ubuntu Linux: Start OpenSSH Server

 

Type the following command:
$ sudo /etc/init.d/ssh start
OR
$ sudo service ssh start

 

Ubuntu Linux: Stop OpenSSH server

 

Type the following command:
$ sudo /etc/init.d/ssh stop
OR
$ sudo service ssh stop

 

Ubuntu Linux: Restart OpenSSH server

 

Type the following command:
$ sudo /etc/init.d/ssh restart
OR
$ sudo service ssh restart

 

Advertisements

About zephyr9000

Happy sailer
This entry was posted in ssh and tagged . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s