Because it is not necessarily needed, tty allocation may require other tasks
like logging the user to wtmp* or creating job control and you may only need
to run the command and get the result as if it where a file to read from.

Btw, you can use the ssh's " -T " to log into a server and not to be
noticed.  :-D


On 7/1/07, Tom Van Looy <[EMAIL PROTECTED]> wrote:
>
> Oke, problem solved. But, why doesn't this flag get set implicitly when
> using a command with ssh?
>
>
> Chris Cohen wrote:
> > On Saturday 30 June 2007 19:31, Tom Van Looy wrote:
> >> Hi
> >>
> >> Today I used sudo as command to ssh and it echoed my sudo password.
> >>
> >> [EMAIL PROTECTED] ~]
> >> $ ssh soekris sudo pfctl -s state
> >> [EMAIL PROTECTED]'s password:
> >> Password:secret_in_echo
> >>      <output of pfctl />
> >> [EMAIL PROTECTED] ~]
> >> $
> >>
> >> I don't see anything about this in the manpage so I think this not
> >> expected behaviour. Normally I ssh from an Ubuntu box to the firewall,
> >> but to be sure, I ssh-ed to localhost on the openbsd box and I got the
> >> same result. What's wrong?
> >
> > Add -t to your ssh command:
> >      -t      Force pseudo-tty allocation.  This can be used to execute
> arbi-
> >              trary screen-based programs on a remote machine, which can
> be
> >              very useful, e.g. when implementing menu
> services.  Multiple -t
> >              options force tty allocation, even if ssh has no local tty.
>
>


-- 
You should be the change that you want to see in the world.
    - Gandhi

Reply via email to