> >If there's netcat/socat on the host you could tunnel it via ssh.
> >
> >Maybe something like this (untested)
> >
> >     ssh esxi "netcat -U /path/to/virtual_serial.sock" | \
> >     socat STDIO TCP-LISTEN:5500
> >     telnet localhost 5500
> 
> Thanks Jirib. I will give this a try later.

just for the record, this works for me on Ubuntu though I don't
know how to escape `cu' :/ (Tested with VMWare Player where
flashboot VM's serial is defined as unix socket.)

$ socat PTY,link=/tmp/pty,raw,waitslave EXEC:'ssh localhost "nc -U 
/tmp/flash50.sock"'
$ cu -l /tmp/pty 
Connected.


OpenBSD/i386 (localhost) (tty00)

login:

I'm not really socat specialist, so maybe there are some secret
options :) Does anybody know them?

$ socat - EXEC:'ssh localhost "nc -U /tmp/flash50.sock"'

Same as above but without need of `cu', but every ^C kicks you
out.

jirib

Reply via email to