in reply to Re^8: Issue in SFTP connection using Net::SFTP::Foreign-
in thread Issue in SFTP connection using Net::SFTP::Foreign-

Oh, wait, you are passing a password but using public key authentication. That's the problem!

Remove the password option from the constructor.

Replies are listed 'Best First'.
Re^10: Issue in SFTP connection using Net::SFTP::Foreign-
by iit2011101 (Novice) on Jun 22, 2016 at 04:41 UTC
    Thank you so much :) It worked