- by Vi
socat - exec:'bash -li',pty,stderr,ctty - bash: no job control in this shell
What options should I use to get fully fledged shell as I get with ssh/sshd?
I want to be able to connect the shell to everything socat can handle (SOCKS 5, UDP, OpenSSL), but also to have a nice shell which correctly interprets all keys, various Ctrl+C/Ctrl+Z, tab completion, up/down keys (with remote history).
Update: Found "setsid" socat option. It fixes "no job control". Now trying to fix Ctrl+D.
Update 2: socat file:`tty`,raw,echo=0 exec:'bash -li',pty,stderr,setsid,sigint,sane. Not it handles Ctrl+D/Ctrl+Z/Ctrl+C well, I can start Vim inside it, remote history is OK.