Re: Pseudo-terminal will not be allocated because stdin is not a terminal.

From: Richard E. Silverman (res_at_qoxp.net)
Date: 03/12/04


Date: 12 Mar 2004 15:57:22 -0500


>>>>> "FC" == Fabio C <fabio@non-existent.int> writes:

    FC> This is probably a FAQ, but none of the solutions I've found have
    FC> been helpful till now. So, please accept my apologies.

    FC> Within a shell script, I used some ssh connection to establish
    FC> remote connections for issuing some commands, like in the example
    FC> below:

    FC> #!/bin/sh ssh host01 <<-EOF ... ... some commands ... EOF

    FC> ...that works beautifully :)

    FC> But, anyway, the following error appears:

    FC> Pseudo-terminal will not be allocated because stdin is not a
    FC> terminal.

% man ssh
...
     -T Disable pseudo-tty allocation.
...

    FC> Since the script is launched by an application that checks for
    FC> errors on STDERR, I need as soon as possible to find a possible
    FC> method to suppress those errors.

    FC> I've already tried using the '-t' switch but still the error
    FC> appears.

-t disables tty creation on the server side; -T, on the client.

-- 
  Richard Silverman
  res@qoxp.net


Relevant Pages

  • Checking for existence of command prior to execution
    ... alone in an interactive shell it works though. ... it will fail if I add ssh to the list of commands which is ... aliased by the tcsh that is calling the above script. ...
    (comp.os.linux.misc)
  • Re: [PHP] SSH and php
    ... % Is it possible to run a SSH command from php? ... it's possible to run any command from php. ... % Doing a quick search on google for "SSH commands" and "SSH help" returned ...
    (php.general)
  • Re: r command security
    ... > My write-up was to clean up trust relationships in the rhost.equiv file and ... Instead, I recommended using ssh. ... > system administrators didn't buy into this because they have to use these ... Some software needs r commands to work and cannot be changed to use ...
    (comp.security.unix)
  • Re: free/cheap Windows SSH client that supports login scripts?
    ... connect, the commands will run. ... to a given server running SSH and then log straight into the mysql ... SecureCRT is so much nicer than anything else out there, ... cheap if you are a heavy ssh user. ...
    (comp.security.ssh)
  • Re: [SLE] SSH question
    ... logins from still issuing other commands. ... Something like ssh host "cat /etc/passwd" is still possible. ... > forced-commands using keys is a neat approach, ...
    (SuSE)

Quantcast