I feel that I’ve done everything right. I’ve created a section in the port forwarding section that forwards all incoming port 22-29 connections to port 22 and my servers ip. When I try to connect from an outside network as USERNAME@MY PUBLIC IP it just times out.

  • phein4242@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    11 months ago

    If you want to forward an ssh connection over an existing ssh connection, ProxyJump is the way to go.

    • zoredache@alien.topB
      link
      fedilink
      English
      arrow-up
      0
      ·
      11 months ago

      I think they are asking how to configure Port forwarding on their border router/firewall for incoming SSH connections from elsewhere on the Internet.

      Not how to transport other protocols over a working SSH connection.

  • elmicha@feddit.de
    link
    fedilink
    English
    arrow-up
    1
    ·
    11 months ago

    Check if your Provider uses CGNAT. And I don’t understand why you opened port 22-29 instead of just one port.

  • poeticmichael@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    11 months ago

    Install Tailscale on the target PC or server, then enable ssh on your account at Tailscale website. Install Tailscale on the device you intend to use for accessing other devices. That’s it. You can now login to the device(s) via ssh.

  • Over-Advice6046@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    11 months ago

    Before you porr forward your ssh, you need to secure it first, example:

    1. Changing your ssh port to unusal port (something above 20000 or 30000 would be good)

    2. Setup your ssh to not use password auth and use only pubkey

    After you set that, port forward the port that you choose and run the command in your terminal or powershell:

    ssh -v ‘pubkeynameyouchoose.pub’ -p ‘portyouchoose’ username@ipaddress