You need to run a script called /etc/init.d/ssh to stop, start, and restart the OpenSSH server.You can also use the service command to control a System V init script. If you are using the latest version of Ubuntu such as 12.04 LTS or 13.04+, you need to use upstart job based commands as listed below.
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
Ubuntu Linux: See status of OpenSSH server
Type the following command:
$ sudo /etc/init.d/ssh status
OR
$ sudo service ssh status
Controlling sshd using upstart based commands
Since the script /etc/init.d/ssh has been converted to an Upstart based job, try the following commands to start / stop / restart the OpenSSH server:
Stop/Start/Restart the OpenSSH using the following commands
The syntax is:
sudo stop ssh sudo start ssh sudo restart ssh sudo status ssh
Sample outputs:
You should follow me on twitter here or grab rss feed to keep track of new changes.
Featured Articles:
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop










![Ubuntu Linux Disable control-alt-delete [CTRL-ALT-DEL] Emergency Keypress Handling](http://s13.cyberciti.org/images/shared/rp/3/25.jpg)




{ 4 comments… read them below or add one }
Really? Starting, stopping, and restarting all require the exact same instructions?
Thanks for the heads up, it was a typo. The FAQ has been updated.
Maybe this should be updated with the new ‘service $foo (start|stop|restart)’ offering?
Isnt it suprising that all the restarts have the same syntax. But yes they do.