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 08:48 AM, Yuri wrote:
I noticed that this command returns NO through ssh:
 > $ ssh user@host "if [ -t 1 ]; then echo YES; else echo NO; fi"
 > NO
and YES when run locally (of course):
 > $ if [ -t 1 ]; then echo YES; else echo NO; fi
 > YES

I can't find any command line option related to running command remotely
in terminal.

-o RequestTTY=yes

I think users intuitively expect commands to be run in
terminal.
Is something broken with my ssh setup?

ssh on FreeBSD 10.1

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

_______________________________________________
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