Ubuntu: Setup SSH Server
Here’s a short list of steps for setting up an SSH server in Ubuntu.
Install SSH Server
Installing the open ssh server is pretty straightforward on Debian. Run the following to install the service and libraries:
sudo apt-get update
sudo apt-get install openssh-server
Enable and start the SSH service:
sudo systemctl enable ssh
sudo systemctl start ssh
Setup Server Firewall
Setup the server firewall to allow incoming SSH connections:
sudo ufw allow ssh
sudo ufw enable
Check the status of the firewall:
sudo ufw status
It should include lines for incoming port 22, like this:
No Comments