Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

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

by salva (Canon)
on Jun 21, 2016 at 12:12 UTC ( [id://1166186]=note: print w/replies, xml ) Need Help??


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

First thing you should do is to remove the -o => 'PreferredAuthentications publickey' part that is not really required and may interfere with Net::SFTP::Internals... unless you have some reason to include it!

Do you know the vendor and version of the remote software? you can just telnet the server at port 22 and it will tell you.

Replies are listed 'Best First'.
Re^4: Issue in SFTP connection using Net::SFTP::Foreign-
by iit2011101 (Novice) on Jun 21, 2016 at 12:24 UTC
    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.
          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.

    Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Domain Nodelet?
    Node Status?
    node history
    Node Type: note [id://1166186]
    help
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this?Last hourOther CB clients
    Other Users?
    Others drinking their drinks and smoking their pipes about the Monastery: (6)
    As of 2024-03-29 06:40 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found