Can't Connect to My Ssh Server?
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...
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
1 Answer
I solved the problem by creating a port-forwarding on my router.