Setting up a SSH Server in Ubuntu Server 10.x and above

This is really simple.
We have chosen OpenSSH as the best software for the job.  Begin by opening a Terminal Window on the server.  Enter the following command to install OpenSHH:
sudo apt-get install openssh-server


To test that it’s working, you can try to ssh into the server:

ssh localhost

You will be prompted for a password.

Then exit the SSH session by typing:


See the screenshot below:


Now, if you want to access the server remotely, you will have to set up port forwarding on your router to get outside connectivity to the SSH server.  We won’t discuss that here but you must have a fixed IP address on the Ubuntu server and then configure your router to forward incomming SSH requests to the fixed IP.

Leave a Comment

Contact Us Here

Please verify.
Validation complete :)
Validation failed :(
Your contact request has been received. We usually respond within an hour, but please be patient. We will get back to you very soon.
Scroll to Top