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

Done!

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:

exit

See the screenshot below:

sshtest

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 incoming SSH requests to the fixed IP.

Comments are welcomed below from registered users.  You can also leave comments at our Discord server

If you would like to see more content and articles like this, please support us by clicking the patron link where you will receive free bonus access to courses and more, or simply buying us a cup of coffee!

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