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

  • Comment on Re^5: Issue in SFTP connection using Net::SFTP::Foreign-

Replies are listed 'Best First'.
Re^6: Issue in SFTP connection using Net::SFTP::Foreign-
by salva (Canon) on Jun 21, 2016 at 12:58 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.
        But can you post the output?

        How long does it take the remote side to close the connection?