Enable SSH in Ubuntu 12.04 Precise

Ssh service is not enabled by default in Ubuntu system. This simple and brief tutorial will show you how to enable ssh service in Ubuntu.

First, launch a terminal window from the dash (or press Ctrl+Alt+T) for running commands.

Paste this command into terminal to hit enter to install openssh-server:

sudo apt-get install openssh-server

That’s it! Now you can use ssh client to connect to this host using the default port 22.

If you would like to change ssh settings, edit /etc/ssh/sshd_config file with your favorite editor. In this case I used the gedit:

sudo gedit /etc/ssh/sshd_config

After edited configuration file, save it and apply the change by restarting the ssh service:

sudo /etc/init.d/ssh restart

For a simple ssh client, download putty from here.

Enjoy!

Leave a Reply

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