Knowing if a remote port forward was successful?

前端 未结 1 1716
离开以前
离开以前 2021-01-19 03:12

I am trying to setup some reverse ssh tunnels so I can access my home network by bouncing off some server with a public IP.

When I run this command: ssh -R :[port_XX

1条回答
  •  终归单人心
    2021-01-19 03:38

    Try adding -o ExitOnForwardFailure=yes

    The full command will be something like:

    ssh -N -R [port_XX]:localhost:22 -o ExitOnForwardFailure=yes user@host
    

    (-N is useful to just forward port, without opening a remote shell; you can also add -f to send process in background, no need if you are running under screen, though..)

    0 讨论(0)
提交回复
热议问题