[Ssh-sftp-perl-users] Problems with using Net::SSH::Perl/Net::SFTP
Brought to you by:
dbrobins
From: Swenson, J. <jr...@ps...> - 2006-11-16 20:10:36
|
Hello. I am attempting to create a script that uses Net::SSH::Perl and Net::SFTP to send a file from one server to another server and to issue remote commands on the other server to operate on said file. However, I am having problems in establishing connections to the remote servers using the facilities of Net::SSH::Perl and Net::SFTP. These are the conditions that I am working under: 1) There will be no accounts set up on the remote servers using SSH-enabled usernames or passwords. 2) Passphrase-based RSA Authentication will be used. 3) Null passphrases will not be used. 4) The resulting script is NOT to issue prompts to the user for information Such as the Passphrase. This requirement is so this script can be run as non-interactive batch job or as code imbedded in a web server. 5) Any prompts for Passphrases (if any) must be handled within the script itself. I have not seen anything in the documentation for Net::SSH::Perl and net::SFTP to allow me to specify to a SSH or SFTP object the RSA Passphrase to allow the script to make the connection to the remote servers. I have also looked at the documentation for the ssh and sftp commands and have been unable to find the parameters that would allow me to specify on the command line the Passphrase or the location of the Passphrase such that Ssh/sftp connections can be made with the remote servers without prompting for the Passphrase. Although I am researching an alternative method for doing what I want using other Perl modules, I would prefer to use Net::SSH::Perl/Net::SFTP for this script since it gives me better control over operations. Can you direct me to any sources where I can get my questions answered? Thank you for your time. -------------------------------------------------- James R. Swenson Information Technology Services The Pennsylvania State University jr...@ps..., 814.863.1348 |