This tutorial will show you the steps needed to setup your Ubuntu machine with an SSH Server so that you can receive incoming ssh connections.
In order to follow this tutorial, you will need the following
Update Package list
Before installing any new packages, it is always good idea to update your package list. You can do this by typing:
sudo apt-get update
Installing the OpenSSH Server
sudo apt-get install openssh-server
After you have done this, OpenSSH Server should be installed. Should you wish to make any changes to the config, you may do so by typing
sudo nano /etc/ssh/sshd_config
If you do, the file should look a little something like this:
A Word of Warning
If you plan to make this machine publically accessible, please make sure to secure your installation. You may find these guides helpful
Connecting to the Server with the SSH Keys
Depending on the system you are using, the method you can use to connect changes. Please follow the appropriate guides below.