I am using Net::SFTP::Foreign with IO::Pty.
My Login Command is:
Net::SFTP::Foreign->new(host=> $server_address,
user => $user_id,
password => $password)
or die "Could not Connect To Server $server_address: $!";
When I am passing invalid entry for server/user/password, it's not throwing the error message. It's simply hanging on the command line and not giving any output ever after 30+ minutes.
Please help how to handle the errors, if there is any invalid input parameters.
If I am passing all the valid values, its working fine.
$server_addressthat is neither a host name nor an IP address? - simbabquesshand post here the output:$Net::SFTP::Foreign::debug=-1; my $sftp = Net::SFTP::Foreign->new(more => '-vvv', ...);- salva