Problems? Is your data what you think it is? | |
PerlMonks |
instantiating an SFTP objectby Aldebaran (Curate) |
on Jun 09, 2017 at 22:11 UTC ( [id://1192447]=perlquestion: print w/replies, xml ) | Need Help?? |
Aldebaran has asked for the wisdom of the Perl Monks concerning the following question: I have a templating system that I use to create pages on my site. Recently, in talking with their tech support, we switched from normal ftp to sftp. Ever since, the code I had been using has been essentially broken. What I had before was:
So, I think, gosh, all I have to do is append a cap S in front of FTP, download the module, and voila. There's always a tricky part, and this one was getting Math::GMP squared away, along with the requisite C library. For others who might trod this path--including myself the next time I get hung up on it, the following command for a debian install put gmp.h where it had to be: sudo apt-get install libgmp3-devWhat I have now gets past the use statement but not by far: Permission denied at /usr/local/share/perl/5.22.1/Net/SFTP.pm line 62.This would be close to an analog of what I had. The say statement prints out the values that I have verified with my ISP. BTW, they think there is no reason I should not be able to transfer files.
It might help the local diagnosticians to show line 62 of SFTP.pm in context. I've remarked next to it and wonder if SFTP requires more to ask a server for a new object than FTP did:
Alright, so there it is. I'm fishing for tips, tricks, whatever you have that pertains to getting SFTP working. It's really putting a cramp in my business to not be able to use my own site effectively. Thank you for your comment.
Back to
Seekers of Perl Wisdom
|
|