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_configand 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-addusing 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 12 1 Answer
I solved the problem by creating a port-forwarding on my router.
3