I have an existing Perl script that uses the FTP object to send a couple of files to an AIX box. I just discovered that our Linux box does not support FTP. It does support SFTP. What steps should I go through to convert my script to use SFTP?
Share
Your current script is probably using the Net::FTP module. You’ll need the Net::SFTP module and its dependencies from CPAN. You may just even start a new script using the existing one as a guide. The logic is the same, though. Connect, send, and disconnect.