Howto Install SSH on Ubuntu

First of all make sure your ubuntu is up to date by executing the following commands.

sudo apt-get update;apt-get upgrade [ENTER]

then install the ssh server

sudo apt-get install ssh

change port to your prefered port (search for port and remove #)

sudo nano /etc/ssh/sshd_config

restart service

sudo /etc/init.d/ssh restart

enable port on firewall

sudo ufw allow your port number

Now you can connect from another client to the server by

ssh -l username@hostname

Leave a Reply

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