in reply to Re: Standard inpute must be tty
in thread Standard inpute must be tty

my code is like this
#!/usr/bin/perl
@a =`ssh -t 192.168.2.9 -l manoj -C su cvs<<EO
access123
access
EO`;
print "@a\n";
OUTPUT
Pseudo-terminal will not be allocated because stdin is not a terminal.
with this asking for a password.
Can we restrict this prompt with this program.

Replies are listed 'Best First'.
Re^3: Standard input must be tty
by tachyon-II (Chaplain) on Jun 26, 2008 at 18:45 UTC

    Did you try to do that from the command line?

    Try Net::SSH2 or Net::SSH::Perl which will let you pass username/pass