I tried for the first time to setup a ssh server following these steps on the server machine:
- Following this article, I installed
sudo apt install openssh-server
- Following this question, I edited
/etc/ssh/sshd_config
and appendedPort 22 PermitRootLogin no AllowUsers usr
- Following the first article,
sudo systemctl restart sshd.service
- Following this article I found my external IP address
ip-add
using this - I tried to ssh from my server machine to the machine itself with
ssh usr@ip-add
However I got this error message:
ssh: connect to host ip-add port 22: Connection refused
ps -A | grep sshd
and check thatsshd
is running25308 ? 00:00:00 sshd