Quantcast
Channel: Active questions tagged windows - Super User
Viewing all articles
Browse latest Browse all 8949

Why can’t I connect to an SSH server on Windows?

$
0
0

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:

  1. Installed the OpenSSH server from the optional features.
  2. Added the public key of my friend to the authorized_keys file
  3. I Got my IP address from here https://whatismyipaddress.com/ I got (the IP address).
  4. On my friend's laptop we ran ssh pc@(the IP address)

And finally, I have this set up on my router:

EnableNameWAN Host Start IP AddressWAN Start PortLAN Host Start PortWAN ConnectionModifyDeleteProtocolWAN Host End IP AddressWAN End PortLAN Host End PortLAN Host Address
SSH Server2222PVC0TCP2222192.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?


Viewing all articles
Browse latest Browse all 8949

Trending Articles