Is ssh supposed to run commands in terminal?

Gert Doering gert at greenie.muc.de
Sat Apr 18 23:39:18 AEST 2015


Hi,

On Fri, Apr 17, 2015 at 03:55:33PM -0700, Yuri wrote:
> On 04/15/2015 00:49, Christian Kandeler wrote:
> >
> >-o RequestTTY=yes
> 
> 
> Thanks, this works.
> 
> However, with this option ssh alters the output of all commands: it adds 
> CR=0x0d in front of every NL=0x0a. This doesn't happen without this option.
> Why is sshd adding CR?

You requested a tty, you got a tty, and that's what ttys are doing unless
you run "stty -ocrnl" first (inside the remote shell, running inside the 
tty).

gert
-- 
USENET is *not* the non-clickable part of WWW!
                                                           //www.muc.de/~gert/
Gert Doering - Munich, Germany                             gert at greenie.muc.de
fax: +49-89-35655025                        gert at net.informatik.tu-muenchen.de


More information about the openssh-unix-dev mailing list