Re: "automatic" port forwarding
From: Jacob Nevins (jacobn_at_chiark.greenend.org.uk)
Date: 02/24/05
- Previous message: Z: "Where is the file that OpenSSH (Windows) uses for logging?"
- In reply to: Lucio Crusca: ""automatic" port forwarding"
- Next in thread: Lucio Crusca: "Re: "automatic" port forwarding"
- Reply: Lucio Crusca: "Re: "automatic" port forwarding"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 24 Feb 2005 17:57:06 +0000 (GMT)
Lucio Crusca <lcml@pixel.it> writes:
>$ ssh -R someport:127.0.0.1:22 -l portfwuser servername
[...]
>The problem is that the user at the client side does not know which port to
>use on the server (which is, BTW, a dynamic port above 49152). So the port
>forwarding should be activated by the server itself (maybe in the script
>used as default shell), because it knows the correct port number. Is there
>a way to do that?
This should be possible in principle with the SSH-2 protocol; the client
can request a port number of 0, which should cause the server to
allocate a port and tell the client what it was. Whether implementations
support it is a different matter, of course; I don't know of any that do
(but I've not looked very hard).
I don't think this is possible even in principle with SSH-1.
- Previous message: Z: "Where is the file that OpenSSH (Windows) uses for logging?"
- In reply to: Lucio Crusca: ""automatic" port forwarding"
- Next in thread: Lucio Crusca: "Re: "automatic" port forwarding"
- Reply: Lucio Crusca: "Re: "automatic" port forwarding"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|