Ok, I figured it out for myself. To do this, I had to do a few things :
1. Compile the new version of ssh, since my version (2.9p2) had a bug.
2. Add GatewayPorts yes
3. The following command from the Client1 then works to make a loop :
ssh -g -C -L 6002:Server1:6008 -R 6008:Client1:6000 Server1
where the following command will show up on my local X server (:0) :
xterm -display Client:2
So the answer to my question is no, sshd does not need to be run on both
machines.
Thanks,
Brian
--- Brian Genisio <briangenisio@yahoo.com> wrote:
> (I realized my last post had no subject, and was not viewable from the
> archives, so I am resending it)
>
> Hello ssh list,
>
> I have been looking at a way to have 2-way connection initiation through a
> firewall for multiple ports. It looks like ssh is going to do this for me,
> byt
> do I need to have a sshd running on both machines?
>
> Here is an example of what I want to do :
>
> Client1 and Server1 are on opposite sides of a firewall. Client1 initiates a
> connection to serviceA (port 9007) on Server 1. serviceA on Server1 in turn
> needs to initiate a connection to serviceB on Client1 (port 6000 (X)).
> Client1
> initiates another serviceC (port 9008) on Server1.
>
> Is this done on the Client1 by simply setting up 1:1 mappings?
> 9007:Server1:9007 6000:Server1:6000 9008:Server1:9008 ?
>
> Or is this achieved on both sides (with sshd running on both sides):
> Client1 : 9007:Server1:9007 9008:Server1:9008
> Server1 : 6000:Client1:6000
>
> Your help is appreciated.
> Thanks,
> Brian
>
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Make a great connection at Yahoo! Personals.
> http://personals.yahoo.com
> --
> List Information: http://tech.erdelynet.com/maillist-ssh-l.asp
> List Archives: http://erdelynet.com/archive/ssh-l/
__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com
-- List Information: http://tech.erdelynet.com/maillist-ssh-l.asp List Archives: http://erdelynet.com/archive/ssh-l/Received on Fri Oct 26 12:51:33 2001
This archive was generated by hypermail 2.1.8 : Fri Jul 29 2005 - 17:33:30 EDT