On Fri, 22 Feb 2002, Max Kovgan wrote: > -=O0~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~O0=- > "He took his vorpal sword in hand: > Long time the manxome foe he sought - > So rested he by the Tumtum tree. > And stood awhile in thought." > > [L.Carrol "Jabberwacky"] > > On Thu, 21 Feb 2002, Hetz Ben Hamo wrote: > > > > This should work. *Don't* set DISPLAY yourself - use the one ssh gives you. > > > What DISPLAY do you get on the gateway (in the middle of the ssh sequence)? > > > What DISPLAY do you get finally on 10.1.1.1? > > > What do you mean by "doesn't work" and "doesn't give me anything"? > > general question: > > what if the gateway has no X on it and therefore its ssh > doesn't support X fowarding? > Max.
Tunnel port 22 of 10.1.1.1: ssh -L 10022:10.0.0.1:22 user@server -f 'echo "connected"; sleep 100' # using ssh -n might have been better? # now you have 100 seconds to establish a connection by: ssh -p 10022 localhost The ssh connection to 'server' will only close after the last user of it will quit, that is, after the end of 'sleep 100' and/or after the end of your other connections. I haven't experimented with 'ssh -n' Note that I'm not sure Hetz could originally do that. He mentioned he could not forward ports. In this case you need to be able to allocate a listening port on your machine. -- Tzafrir Cohen mailto:[EMAIL PROTECTED] http://www.technion.ac.il/~tzafrir ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
