- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- using sftp with perl
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-27-2007 01:52 AM
тАО11-27-2007 01:52 AM
Is there a Perl module that simply wraps the existing sftp on the system and allows scripting similar to Net::FTP, except with sftp?
I don't want the modules that have their own native sftp built-in such as Net::SFTP, that's major overkill for just sending a few files, and I've no luck installing Net::SFTP on my test Linux machine, it fails with many errors.
I want to use our existing sftp program, but I need a way to script the username/password exchange in order to automate the transfers. Thanks,
Brian
Campus Card Services
Indiana University
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-27-2007 05:02 AM
тАО11-27-2007 05:02 AM
Re: using sftp with perl
http://search.cpan.org/~salva/Net-SFTP-Foreign-1.31/lib/Net/SFTP/Foreign.pm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-27-2007 06:20 AM
тАО11-27-2007 06:20 AM
Re: using sftp with perl
I'm surprised this is so difficult. I have Net::Ftp now and it works great, but it's plain-text, not encrypted. Also I have command line sftp, again it works great, I can easily transfer a file via sftp to the desired machine. But to automate the sftp process is unbelievably difficult.
Any other suggestions are welcome. Thanks,
Brian
Campus Card Services
Indiana University
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-27-2007 06:24 AM
тАО11-27-2007 06:24 AM
Re: using sftp with perl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-27-2007 06:31 AM
тАО11-27-2007 06:31 AM
Re: using sftp with perl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-27-2007 06:37 AM
тАО11-27-2007 06:37 AM
Re: using sftp with perl
Net::SFTP::Foreign does not (and will never) allow to use passwords for authentication
Sorry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-27-2007 06:42 AM
тАО11-27-2007 06:42 AM
Re: using sftp with perl
David: I don't have Expect, I wonder if a precompiled binary like this would work:
http://hpux.connect.org.uk/hppd/hpux/Tcl/expect-5.43/
I don't have much faith in our compiler or my ability to compile, but it appears Expect only needs one other program, Tcl. Maybe I could get those two programs and try that route. I don't suppose HP has pre-compiled depots for Expect and Tcl? Thanks,
Brian
Campus Card Services
Indiana University
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-27-2007 06:46 AM
тАО11-27-2007 06:46 AM
Re: using sftp with perl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-27-2007 06:50 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-27-2007 06:50 AM
тАО11-27-2007 06:50 AM
Re: using sftp with perl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-27-2007 06:52 AM
тАО11-27-2007 06:52 AM
Re: using sftp with perl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-28-2007 08:26 AM
тАО11-28-2007 08:26 AM
Re: using sftp with perl
Brian
Campus Card Services
Indiana University