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

I have tried without -o => 'PreferredAuthentications publickey' this too. It was not working. I did telnet. -> telnet 121.241.2.65 22 Its showing this Telnet: connect to address 121.241.2.65: Connection timed out although when i used the port provided by the vendor I got this output Trying 121.241.2.65... Connected to 121.241.2.65. Escape character is '^]'. SSH-2.0-OpenSSH_5.3 Connection closed by foreign host.
  • Comment on Re^4: Issue in SFTP connection using Net::SFTP::Foreign-

Replies are listed 'Best First'.
Re^5: Issue in SFTP connection using Net::SFTP::Foreign-
by iit2011101 (Novice) on Jun 21, 2016 at 12:50 UTC
        What happens when you run that command from the command line?

        Add -vvv in order to see what is happening inside ssh:

        ssh -i /home/fds/apfh/FDSnse_fh/etc/id_rsa -p 6010 -o NumberOfPassword +Prompts=1 \ -o PreferredAuthentications=publickey,keyboard-interactive,passwor +d \ -l F***EMD 121.241.2.65 -vvv -s sftp
        It should hang once the connection is established, waiting for data.
          Yup its hanging for some seconds and then connection is getting closed by the remote host Connection to 121.241.2.65 closed by remote host.