Re: Trying to use socat to tunnel tmux socket

2010-06-03 Thread Michael Torrie
I've posted the scripts I use to share a tmux session with a remote host via socat in my wiki now. Hope it is useful and interesting to some: http://www.torriefamily.org/~torriem/wiki/computer_stuff:shareterm Lots of room for improvement, of course.

Re: Trying to use socat to tunnel tmux socket

2010-05-31 Thread Nicholas Marriott
socat needs to call ioctl(TIOCSWINSZ) on the pty. On Mon, May 31, 2010 at 04:49:03PM -0600, Michael Torrie wrote: > On 05/31/2010 04:14 PM, clemens fischer wrote: > > Cool idea! Maybe the "remote" PTY cannot operate SIGWINCH and the like > > with an ssl transport. > > Well there's really no mec

Re: Trying to use socat to tunnel tmux socket

2010-05-31 Thread Michael Torrie
On 05/31/2010 04:14 PM, clemens fischer wrote: > Cool idea! Maybe the "remote" PTY cannot operate SIGWINCH and the like > with an ssl transport. Well there's really no mechanism for passing the sigwinch signal through a socket anyway, so I'm not surprised. This is the for SSL or straight tcp/ip

Re: Trying to use socat to tunnel tmux socket

2010-05-31 Thread clemens fischer
Michael Torrie wrote: > I did solve my problem, and I used socat. Basically here's the socat > command that sends tmux to a remote server: > > socat SYSTEM:"tmux attach",pty,stderr OPENSSL:host:port,verify=0 > > The listener (remote host) runs socat like this (all on one line): > > socat opens

Re: Trying to use socat to tunnel tmux socket

2010-05-31 Thread clemens fischer
Nicholas Marriott wrote: > You can't share file descriptors between machines. Ah, yes, I had forgotten about this to be a remote connection. clemens -- ___ tmux-users maili

Re: Trying to use socat to tunnel tmux socket

2010-05-31 Thread Michael Torrie
On 05/31/2010 12:53 PM, clemens fischer wrote: > I wonder why socat or some other proxy cannot transparently send this > message like any other? Is the operating system supposed to transform > the fd's sent so they are usable by the receiver like dup'ed ones? I did solve my problem, and I used so

Re: Trying to use socat to tunnel tmux socket

2010-05-31 Thread Nicholas Marriott
You can't share file descriptors between machines. It would need to act as an active proxy between the two and I'm not sure you can tell if there is an fd unless you are expecting it.. On Mon, May 31, 2010 at 08:53:57PM +0200, clemens fischer wrote: > Nicholas Marriott wrote: > > > tmux uses th

Re: Trying to use socat to tunnel tmux socket

2010-05-31 Thread clemens fischer
Nicholas Marriott wrote: > tmux uses the SCM_RIGHTS OOB data mechanism to pass a file descriptor, > socat obviously does not handle this. > > I'm not sure it would even be possible for it to do so. > > The tmux server needs a duplicate of the tty fd so it can update the > terminal. I wonder why s

Re: Trying to use socat to tunnel tmux socket

2010-05-24 Thread Michael Torrie
On 05/24/2010 04:06 PM, Nicholas Marriott wrote: > tmux uses the SCM_RIGHTS OOB data mechanism to pass a file descriptor, > socat obviously does not handle this. > > I'm not sure it would even be possible for it to do so. > > The tmux server needs a duplicate of the tty fd so it can update the >

Re: Trying to use socat to tunnel tmux socket

2010-05-24 Thread Nicholas Marriott
Hi On Mon, May 24, 2010 at 03:37:41PM -0600, Michael Torrie wrote: > I have a situation where I need to use socat to tunnel the unix socket > that tmux uses. However tmux isn't happy at all with socat tunneling > stuff. Tmux server log reports "fatal: server_client_msg_dispatch: > MSG_IDENTIFY m

Trying to use socat to tunnel tmux socket

2010-05-24 Thread Michael Torrie
I have a situation where I need to use socat to tunnel the unix socket that tmux uses. However tmux isn't happy at all with socat tunneling stuff. Tmux server log reports "fatal: server_client_msg_dispatch: MSG_IDENTIFY missing fd" So obviously socat isn't quite passing the data as tmux expects.