Linux

How to install SSH in Ubuntu Server

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

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 a 7-time VMware vExpert, with over two decades of experience in Information Technology. Having worked for numerous Fortune 500 companies as well as in various industries, He 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. Also, he goes through the effort of testing and troubleshooting issues, so you don't have to.

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.