3

I can initialize reverse SSH from client with following command:

$ ssh -R 0:localhost:22 <server_host>
Allocated port 42853 for remote forward to localhost:22

How can I figure out that 42853 port from the server side without sudo?

Jaakko
  • 320
  • 3
  • 12
  • 2
    Looking around, somebody had the same issue as you and made a patch (which might now be outdated) and discusses about other methods: https://nico.schottelius.org/blog/openssh-6.2-add-callback-functionality-using-dynamic-remote-port-forwarding/ – A.B Jan 16 '18 at 23:29

0 Answers0