sumandas has asked for the wisdom of the Perl Monks concerning the following question:

I am running a perl script using cpan module "Net::SSH:ANY" to connect to remote server,I am getting this error,how to resolve this?

using Net::SSH::Any; //perl code my $ssh = Net::SSH::Any->new($ssh_url, user => $ssh_user, password => +$ssh_pwd); my $cmd1 = "findbug -p $project | dumpbug -fnt $template_file_path"; $ssh->system({ stdout_fh => $fh}, $cmd1) or $logger->logdie("Connectin +g failed"); print "output is $project"; //perl code

"Pseudo-terminal will not be allocated because stdin is not a terminal. Permission denied, please try again. Permission denied, please try again. Permission denied (gssapi-keyex,gssapi-with-mic,publickey,password). output is PROJ_123 "

output is coming correctly but this error is printing in perl console

Replies are listed 'Best First'.
Re: Getting error using Net::SSH:Any
by salva (Canon) on Mar 22, 2014 at 08:25 UTC
    Show us your code.

    Which backend are you using?

    Finally, enable debugging and show us the output:

    $Net::SSH::Any::debug=-1;