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.
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
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
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
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
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
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
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
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
>
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
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.
11 matches
Mail list logo