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.

  • 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