Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^5: Net-SFTP-Foreign: SSH slave exited unexpectedly with error code 255

by salva (Canon)
on Apr 09, 2015 at 15:04 UTC ( [id://1122957]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Net-SFTP-Foreign: SSH slave exited unexpectedly with error code 255
in thread Net-SFTP-Foreign: SSH slave exited unexpectedly with error code 255

So, it is working now, right?

For long chunks of text you can use <readmore> tags. For instance:

foo bar

Also, be aware that the contents of the transferred files can be reconstructed easily from the debugging output you have posted.

  • Comment on Re^5: Net-SFTP-Foreign: SSH slave exited unexpectedly with error code 255
  • Download Code

Replies are listed 'Best First'.
Re^6: Net-SFTP-Foreign: SSH slave exited unexpectedly with error code 255
by toohoo (Beadle) on Apr 10, 2015 at 10:56 UTC

    Thanks, it is working now.

    Answer changed

    I believe it was in two different styles of writing ssh-options I've found. Proably I mixed them.
    The contents of the testfile are not important, that were only test without secure data. But thanks for the hint.
    Have A Nice Weekend, Thomas

    PS:
    Now I get a warning in the other Web application, where I wanted to insert the changes made in the old system:

    Warning: Identity file $keyfilepath not accessible: No such file or directory.

    .. but the files are transfered right and have the right content. Is this able to understand?

      Warning: Identity file $keyfilepath not accessible: No such file or directory.

      Again, it looks as if you where quoting too much or using the wrong set of quotes (single instead of double, or qw)... Ummm, I guess you are passing $keyfilepath as follows:

      $sftp = Net::SFTP::Foreign->new(... more => [qw(-i $keyfilepath)], ...);
      Instead, it should be...
      $sftp = Net::SFTP::Foreign->new(... more => ['-i', $keyfilepath], ...);
      It is probably working anyway because you have the private key in the standard place ~/.ssh/id_*

        Sorry for that. I tried qq now, which isn't working too. In one case I have it to give 2 ssh-options in: (I'll try in your way to write it)

        more    => ['-i', $keyfilepath, '-o', 'StrictHostKeyChecking=no'],

        This now should work. Thanks again

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-04-18 08:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found