|We don't bite newbies here... much|
Modifying Script From Net::SFTP to Net::SFTP::Foreignby CaptainK9 (Initiate)
|on Apr 10, 2019 at 14:51 UTC||Need Help??|
CaptainK9 has asked for the wisdom of the Perl Monks concerning the following question:
I have a perl script that is taking some files off a server - renaming some files - and putting them on a remote ftp server.
This script originally written by someone else, I'm just trying to make it work again after some updates.
Currently, my script fails with this error.
No matching cipher found: client 3des-cbc,blowfish-cbc,arcfour server aes256-ctr,aes192-ctr,aes128-ctr at /usr/local/share/perl5/Net/SSH/Perl/SSH2.pm line 92.
I have tried modifying the ~/.ssh/config file with different Ciphers but I cannot seem to make that work no matter what I put in there.
I was told to use Net::SFTP::Foreign instead of Net::SFTP (line 15)
Whenever I use this instead my script dies with "Not a HASH reference at /root/backup/backswitch.pl line 20."
Is there a way to modify that line to make it work with the newer SFTP::Foreign - I'm not against doing it either way as long as it works.
Thanks for your help I greatly appreciate it.