SSH to a PC when connected to WireGuard - eviltoast

Hi. I want to access a PC remotely, but I don’t want to expose the PC to the Ethernet. I have a WireGuard server (with the WireGuard IP: 11.0.0.1) and the 2 configuration files, one for each PC.

I when I am connected to the WireGuard, I can ping the server, but it doesn’t connect to the SSH. I also tried to have the WireGuard config for the server run on the PC that I want to access, but when I tried to connect via SSH, I get “Wrong password” even if I am putting the correct password.

So the question, I should do something different to get a SSH connection?

  • zfa@alien.topB
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    Outside of fixing your SSH issues, you should also change from using 11.0.0.1 for WG as that’s a public IP. See RFC1918.

  • spanky_rockets@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    If you can post your conf files for both pcs it would be a good start. (Censor your wan obv)

    Did you use a third party service to set up WireGuard like pivpn or tailscale? Can you normally ssh between pc’s while local? Did you enable port forwarding for wireguard traffic on your router?