Re: Is ssh supposed to run commands in terminal?

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

 



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?

I think the only effect of running in the terminal is the term flag that the process sees on the stdin and stdout (in shell it is [ -t 1 ]). The process is supposed to detect the terminal caps and print the output accordingly.

I even verified that this is sshd is doing it and not the cat command by writing the C program printing newlines.

Yuri
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev




[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux