[gameprogrammer] Re: TCP/IP Problem: NAT
- From: Chris Nystrom <cnystrom@xxxxxxxxx>
- To: gameprogrammer@xxxxxxxxxxxxx
- Date: Sat, 20 Nov 2004 08:11:26 -0600
On Fri, 19 Nov 2004 19:44:16 -0600, Mando Escamilla
<mando.escamilla@xxxxxxxxx> wrote:
> I don't know how it works, but it's an option in sshd to forward X11
> connections. Usually, you have to manually tell the ssh client to
> initiate the forwarding (with the -X flag), but sometimes I've seen it
> do it by default.
I think I got it now. I was looking at the scp source code. scp is
apparently the old rcp that uses ssh has the transport layer. It is
pretty simple really. It just runs a ssh session with a command (in
this case scp with a flag to tell scp that it is the remote instance)
and then it just does the standard unix fork and redirect the stdio to
new file descriptors and viola! you started a service on the remote
host and you have a pipe back to do whatever you want with. Never mess
with hostnames, or IP addresses, so NAT should not be an issue, and it
is even secure.
You can just run scp with the verbose flag to see it in action.
Cool.
Thank for your help,
Chris
--
Chris Nystrom <cnystrom@xxxxxxxxx>
http://www.newio.org/~ccn
AIM: nystromchris
---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html
- References:
- [gameprogrammer] TCP/IP Problem: NAT
- From: Chris Nystrom
- [gameprogrammer] Re: TCP/IP Problem: NAT
- From: Bob Pendleton
- [gameprogrammer] Re: TCP/IP Problem: NAT
- From: Chris Nystrom
- [gameprogrammer] Re: TCP/IP Problem: NAT
- From: Mando Escamilla
Other related posts:
- » [gameprogrammer] TCP/IP Problem: NAT
- » [gameprogrammer] Re: TCP/IP Problem: NAT
- » [gameprogrammer] Re: TCP/IP Problem: NAT
- » [gameprogrammer] Re: TCP/IP Problem: NAT
- » [gameprogrammer] Re: TCP/IP Problem: NAT
- » [gameprogrammer] Re: TCP/IP Problem: NAT
- » [gameprogrammer] Re: TCP/IP Problem: NAT
- » [gameprogrammer] Re: TCP/IP Problem: NAT
- » [gameprogrammer] Re: TCP/IP Problem: NAT
- » [gameprogrammer] Re: TCP/IP Problem: NAT
- » [gameprogrammer] Re: TCP/IP Problem: NAT
- » [gameprogrammer] Re: TCP/IP Problem: NAT
- » [gameprogrammer] Re: TCP/IP Problem: NAT
- » [gameprogrammer] Re: TCP/IP Problem: NAT
- » [gameprogrammer] Re: TCP/IP Problem: NAT
- » [gameprogrammer] Re: TCP/IP Problem: NAT
- [gameprogrammer] TCP/IP Problem: NAT
- From: Chris Nystrom
- [gameprogrammer] Re: TCP/IP Problem: NAT
- From: Bob Pendleton
- [gameprogrammer] Re: TCP/IP Problem: NAT
- From: Chris Nystrom
- [gameprogrammer] Re: TCP/IP Problem: NAT
- From: Mando Escamilla