On Fri, 5 Jan 2001 20:36:09 -0600 (CST), William L. (Bill) Barth
    <[EMAIL PROTECTED]> wrote:
> 
> home$ ssh -t work ssh work1 /pathtovncserver/vncserver :2 ; ssh -g -R 
>5902:work1:5902 home
> 
> (The reverse connection is necessary since the firewalls don't allow
> any ports but the SSH ports through.)

I do not understand why you need the 2nd (reverse) ssh. You can
forward the home to work and work to home on the initial ssh.

Since I'm forwarding a lot of ports I have it on my ~/.ssh/config like
this (I also connect to one computer at work and work on another):

    LocalForward 5910  bsw1:5910     # view LOAD VNC on bsw1
    LocalForward 5944  linux:5944    # work on X (VNC) Emacs

    RemoteForward 5901 ekc-5:5900    # connect to 2nd Home computer

I'm connecting from ekc-1 (at home ) to linux (at work).
The net nnection is:

       ekc-1 |FW| ---(internet)--- |FW| linux
ekc-5 __|                                 |___bsw1___PC___(more)

To work from home (ekc-1 or ekc-5) on my emacs session, I connect to
ekc-1:44, to work on home PC (ekc-5) from my PC at work I connect to
linux:1. So, single ssh should suffice (I also forward telnet and X).

Ehud.


-- 
 @@@@@@ @@@ @@@@@@ @    @   Ehud Karni  Simon & Wiesel  Insurance agency
     @    @      @  @@  @   Tel: +972-3-6212-757    Fax: +972-3-6292-544
     @    @ @    @ @  @@    (USA)  Fax  and  voice  mail:  1-815-5509341
     @    @ @    @ @    @        Better     Safe     Than     Sorry
 http://www.simonwiesel.co.il    mailto:[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, send a message with the line: unsubscribe vnc-list
to [EMAIL PROTECTED]
See also: http://www.uk.research.att.com/vnc/intouch.html
---------------------------------------------------------------------

Reply via email to