Don't miss out on new posts! Sign up!

How to install SSH in Ubuntu Server

One of the first things that you are probably going to want to do with your Ubuntu server is SSH into it to either transfer files or have access to a remote command prompt to run commands, etc.  By default SSH is not installed in a default installation of Ubuntu server so we are going to need to install it before we can use our favorite SSH utility to connect to the server.

In order to get SSH installed, it is simply a matter of running a short command at the command window.  You will of course need to be on the console session of your Ubuntu server to run this since we don’t have SSH access as of yet.

The command to run is:

apt-get install ssh


You will be prompted to confirm the installation of the packages needed to get SSH up and running.


After installation, nothing special happens – you will simply see that the command finishes and you are brought back to the command line.


However, now that we have SSH installed and running, we can use WinSCP or other utility to connect to our server:



Final Thoughts:

It is certainly not too difficult to get SSH installed on your Ubuntu server and it is definitely one of those first few things you will probably need/want to do out of a clean installation to get your server ready to finish out the other configuration that you will most likely want to do.  Also, again, by enabling SSH you will be able to transfer files to and from your server using an SCP utility of your choice.

Don't miss out on new posts! Sign up!

Brandon Lee

Brandon Lee is the Senior Writer, Engineer and owner at and has over two decades of experience in Information Technology. Having worked for numerous Fortune 500 companies as well as in various industries, Brandon has extensive experience in various IT segments and is a strong advocate for open source technologies. Brandon holds many industry certifications, loves the outdoors and spending time with family.

Related Articles

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.