http://www.perlmonks.org?node_id=1027463


in reply to Unable to connect to some SFTP servers using Perl::SFTP

What springs to attention is your use of $InboundParameters[1] and $InboundParameters[2]. The former is used in the information printed while the latter contains host information. Any chance they are inconsistent when you call your sub?

Replies are listed 'Best First'.
Re^2: Unable to connect to some SFTP servers using Perl::SFTP
by skylinedreamer (Novice) on Apr 09, 2013 at 02:05 UTC
    The $InboundParameters[1] is the name of the host and $InboundParameters[2] is the address of the host.

    I am only able to connect with one of the host in my list using the script.

    But when I use the terminal to connect all of them are able to connect. It's only whne I use the perl library, its not able to connect.