Is ssh supposed to run commands in terminal?

Gert Doering gert at
Sat Apr 18 23:39:18 AEST 2015


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 

USENET is *not* the non-clickable part of WWW!
Gert Doering - Munich, Germany                             gert at
fax: +49-89-35655025                        gert at

More information about the openssh-unix-dev mailing list