Linux

How to install SSH in Ubuntu Server

How to install SSH in Ubuntu Server

Highlights

  • 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.
  •  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.
  • 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.

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

ubuntusrv_ssh

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

ubuntusrv_ssh2

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

ubuntusrv_ssh3

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

ubuntusrv_ssh4

 

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.

Subscribe to VirtualizationHowto via Email 🔔

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Brandon Lee

Brandon Lee is the Senior Writer, Engineer and owner at Virtualizationhowto.com 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

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

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