I'm trying to connect to my PC from my laptop when I'm out of town. First I made sure my VPN was turned off. I live in Egypt and my ISP is WE Egypt (aka: Telecom Egypt).
I set everything up but it's not working.
Here's what I did and where it all went wrong:
- Installed the OpenSSH server from the optional features.
- Added the public key of my friend to the
authorized_keys
file - I Got my IP address from here https://whatismyipaddress.com/ I got (the IP address).
- On my friend's laptop we ran
ssh pc@(the IP address)
And finally, I have this set up on my router:
Enable | Name | WAN Host Start IP Address | WAN Start Port | LAN Host Start Port | WAN Connection | Modify | Delete | Protocol | WAN Host End IP Address | WAN End Port | LAN Host End Port | LAN Host Address |
---|---|---|---|---|---|---|---|---|---|---|---|---|
SSH Server | 22 | 22 | PVC0 | TCP | 22 | 22 | 192.168.1.2 |
Here's where it all goes wrong, i get thisssh: connect to host (the IP address) port 22: Connection refused
I went on to try anything I found online and nothing worked
Here's what I tried:
- Add out and in allow on my Windows firewall on port 22.
- Checked the SSH config to be specific to the port and it was 22.
- I tried to run
ssh pc@(the IP address)
from the same PC that has the server and I got the same response.
So my question is, what am I missing or what should I check next?