I need to run any "remote shell daemon" (ssh, telnet, netcat, socat... I don't mind) as non-root user. The remote shell should provide tab-completion and I want to be able to browse history using arrows.
I am currently using a netcat-based solution, but I loose tab-completion and I am unable to browse history using arrows
On server side :
# Run the "remote shell daemon" $ mkfifo fifo $ nc -l 2000 <fifo | /bin/bash &> fifo $ rm fifo
On client side :
# Connect to the remote shell $ nc $REMOTE_ADDR 2000
-l argument to bash does not help.