Hi Monks,
I have a bit of a tricky situation. One of my product's customers is not able to ftp files using NET::SFTP (he can ftp OK from command line) . Every time he tries to to run the program that is supposed to transfer files he gets this message:
No matching cipher found: client DES3 server aes128-cbc,3des-cbc,blowf
+ish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysato
+r.liu.se,aes128-ctr,aes192-ctr,aes256-ctr at /exlibris/product/perl-5
+.8.8/lib/site_perl/5.8.8/Net/SSH/Perl/SSH2.pm line 87
Which means that he is missing some key ciphers.
This is a code snippet that recreates the problem on his server (basically just using Net::SFTP but its always good to show some code)
#!/usr/bin/perl
use strict;
use warnings;
use Net::SFTP;
##All the credentials have been changed for privacy reasons
my %args = (user=>'aaa', password=>'bbb');
my $ftp = new Net::SFTP('http://www.test.com',%args);
($get_code) = $ftp->get('temp1', 'temp2');
The best solution of course would to be re-install all the NET modules (SFTP, SSH) and make them use the correct ciphers, or to look at the SSH module and try to add a cipher.
The problem is this (sounds a bit like a riddle): this customer is super sensitive about security and won't let me take a look at any code. I can give him any program I want or tell him what to do, but I can't poke around. Very annoying!! The question is, what can I do?
One option I thought about is to give a more simple SFTP module than NET::SFTP (which is a bit complicated to install) and let him install it (or just give him the *.pm file).
Another option is to somehow give him a correct cipher, but I'm not sure where to put it. Anyhow, I'm really stuck and open to suggestions here.
Thanks a lot
Guy Naamati
I remember you well in the Chelsea Hotel
---L. Cohen
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.