Dynamically allocated port on reverse forward

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi,

I discovered ssh option of dynamically allocating a port on reverse forwarded 
connections (option: -R)

If I invoke ssh this way:
    ssh -R 0:localhost:22 remote_ssh_server
ssh prints a debug message like:
   Allocated port 40454 for remote forward ....
before it drops to the shell.

Is there a way of querying the allocated port on the remote site to make it 
usable within scripts? For example to execute a command via ssh on the origin 
site in this case.

Attachment: signature.asc
Description: This is a digitally signed message part.


[Index of Archives]     [Open SSH Unix Development]     [Fedora Users]     [Fedora Desktop]     [Yosemite Backpacking]     [KDE Users]     [Gnome Users]

  Powered by Linux