Proposed enhancement: forward controlling terminal

Matt McCutchen hashproduct at
Mon Sep 18 01:47:49 EST 2006

Dear OpenSSH people,

It would be nice if SSH could forward the client's controlling
terminal to the remote process in addition to the client's stdin and
stdout.  This way, if the user wants to run a process through sudo on
the remote machine while redirecting stdin and stdout locally (ssh B
sudo foo <in >out), sudo would be able to read a password from the
user.  Ditto if the process is invoked through two steps of SSH (ssh B
ssh C foo <in >out).  Similarly, rsync over SSH would work properly
with --rsync-path="sudo rsync" or --rsh="ssh B ssh".  See this thread
on the rsync mailing list:

openssh-unix-dev mailing list
openssh-unix-dev at

More information about the openssh-unix-dev mailing list