How to install Open SSH Server on Ubuntu and Linux Mint

Note: The following steps will work for installing open SSH server on a desktop computer as well as Ubuntu server. This can also be done in Debian and Linux Mint.

 

What is SSH?


SSH is program and protocol for securely logging into remote machines across a network. It allows you to run programs, and do a variety of tasks as if you were sitting at the machine. SSH is very similar to telnet except for it is with encryption to protect the transferred information and authentication.

 

 

 

How to Install SSH Server:


We will use the terminal to install the SSH server. Open up a terminal and type in the following command to search for openssh.

 

apt-cache search openssh

 

 

apt-get search openssh | MixedupEric.com Install SSH (openssh) server on Ubuntu and or Linux Mint

 

 

You can see there are several packages available. The package we will want to install is openssh-server.

openssh-server - secure shell (SSH) server, for secure access from remote machines.

 

 

apt-get search Results for OpenSSH | MixedupEric.com Install SSH (openssh) server on Ubuntu and or Linux Mint

 

 

To install openssh-server we can use apt-get.

sudo apt-get install openssh-server

 

 

apt-get install  openssh-server | MixedupEric.com Install SSH (openssh) server on Ubuntu and or Linux Mint

 

 

Enter Your Password

 

 

Enter Your Password to install openssh | MixedupEric.com Install SSH (openssh) server on Ubuntu and or Linux Mint

 

 

Enter Yes to install the packages

 

 

Enter yes to confirm install | MixedupEric.com Install SSH (openssh) server on Ubuntu and or Linux Mint

 

 

Once it completes we will want to jump on a remote machine and try to connect. (Note: Your SSH server IP will may be different) 

If you need help finding your IP address please take a look at: http://mixeduperic.com/linux/how-to-find-your-ip-address-in-linux.html

 

 

SSH Command to SSH into a machine - Ubuntu Linux

 

 

Enter Yes to accept the Certificate.

Click Yes to accept ssh key - Ubuntu Linux

 

 

If you would like to learn how to change your default SSH port to help protect against automated attacks check out:

http://mixeduperic.com/linux/how-to-change-the-default-ssh-port-and-or-have-it-running-on-more-then-one-port.html

 

If you enjoyed this post, please share it on your favorite social network by clicking on the “Share / Save” bar below.