<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: using sftp with perl in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/using-sftp-with-perl/m-p/5081635#M92585</link>
    <description>Brian if you don't already have it, bring down expect. Expect will allow you to use the native sftp and pass in a username and password.</description>
    <pubDate>Tue, 27 Nov 2007 14:31:56 GMT</pubDate>
    <dc:creator>David Bellamy</dc:creator>
    <dc:date>2007-11-27T14:31:56Z</dc:date>
    <item>
      <title>using sftp with perl</title>
      <link>https://community.hpe.com/t5/operating-system-linux/using-sftp-with-perl/m-p/5081631#M92581</link>
      <description>I want to script sftp transfers, and we have a working version of sftp from our SSH installation.&lt;BR /&gt;&lt;BR /&gt;Is there a Perl module that simply wraps the existing sftp on the system and allows scripting similar to Net::FTP, except with sftp?&lt;BR /&gt;&lt;BR /&gt;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. &lt;BR /&gt;&lt;BR /&gt;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,&lt;BR /&gt;&lt;BR /&gt;Brian</description>
      <pubDate>Tue, 27 Nov 2007 09:52:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/using-sftp-with-perl/m-p/5081631#M92581</guid>
      <dc:creator>Brian Bartley</dc:creator>
      <dc:date>2007-11-27T09:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: using sftp with perl</title>
      <link>https://community.hpe.com/t5/operating-system-linux/using-sftp-with-perl/m-p/5081632#M92582</link>
      <description>You could try Net::SFTP::Foreign.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://search.cpan.org/~salva/Net-SFTP-Foreign-1.31/lib/Net/SFTP/Foreign.pm" target="_blank"&gt;http://search.cpan.org/~salva/Net-SFTP-Foreign-1.31/lib/Net/SFTP/Foreign.pm&lt;/A&gt;</description>
      <pubDate>Tue, 27 Nov 2007 13:02:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/using-sftp-with-perl/m-p/5081632#M92582</guid>
      <dc:creator>Court Campbell</dc:creator>
      <dc:date>2007-11-27T13:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: using sftp with perl</title>
      <link>https://community.hpe.com/t5/operating-system-linux/using-sftp-with-perl/m-p/5081633#M92583</link>
      <description>Thanks, for a minute that looked like a good solution, but Net::SFTP::Foreign apparently doesn't have any feature for passing a username and password. The Windows machine I'm transferring to probably does not support hostbased auth, so I need a way to send username/password strings.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Any other suggestions are welcome. Thanks,&lt;BR /&gt;&lt;BR /&gt;Brian&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Nov 2007 14:20:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/using-sftp-with-perl/m-p/5081633#M92583</guid>
      <dc:creator>Brian Bartley</dc:creator>
      <dc:date>2007-11-27T14:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: using sftp with perl</title>
      <link>https://community.hpe.com/t5/operating-system-linux/using-sftp-with-perl/m-p/5081634#M92584</link>
      <description>There is a Net:SFTP package out there.  But, I found it pretty tricky to build (much easier on Linux fwiw).  It was so inconsistent to build between test servers, I decided not to fool with it.  The biggest issues seemed to be around some of the Crypt:DES and similiar builds which relied on Math:Pari.  This didn't build automatically at all, and took days and days of work (and failures) to get it loaded.  Once I had it working I started a map of what and how to load and failed miserably, went to a whole 'nother box and began again, and got it working.  Seemed so nasty of an install, with SO MANY bad dependencies, I decided to not even use it.  I was worried about patching up , and once I became dependant on it, having it break again.</description>
      <pubDate>Tue, 27 Nov 2007 14:24:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/using-sftp-with-perl/m-p/5081634#M92584</guid>
      <dc:creator>TwoProc</dc:creator>
      <dc:date>2007-11-27T14:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: using sftp with perl</title>
      <link>https://community.hpe.com/t5/operating-system-linux/using-sftp-with-perl/m-p/5081635#M92585</link>
      <description>Brian if you don't already have it, bring down expect. Expect will allow you to use the native sftp and pass in a username and password.</description>
      <pubDate>Tue, 27 Nov 2007 14:31:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/using-sftp-with-perl/m-p/5081635#M92585</guid>
      <dc:creator>David Bellamy</dc:creator>
      <dc:date>2007-11-27T14:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: using sftp with perl</title>
      <link>https://community.hpe.com/t5/operating-system-linux/using-sftp-with-perl/m-p/5081636#M92586</link>
      <description>I guess I could have read the bold printed statement on the page:&lt;BR /&gt;&lt;BR /&gt;Net::SFTP::Foreign does not (and will never) allow to use passwords for authentication&lt;BR /&gt;&lt;BR /&gt;Sorry.</description>
      <pubDate>Tue, 27 Nov 2007 14:37:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/using-sftp-with-perl/m-p/5081636#M92586</guid>
      <dc:creator>Court Campbell</dc:creator>
      <dc:date>2007-11-27T14:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: using sftp with perl</title>
      <link>https://community.hpe.com/t5/operating-system-linux/using-sftp-with-perl/m-p/5081637#M92587</link>
      <description>TwoProc: You're not kidding, I tried installing Net::SFTP on a Linux machine and the results were horrid. It wanted module after module and I had no idea how to respond to the prompts. Needless to say I've eliminated Net::SFTP as a solution. I'm glad to hear someone else suffered the same problems and that it wasn't just me.&lt;BR /&gt;&lt;BR /&gt;David: I don't have Expect, I wonder if a precompiled binary like this would work:&lt;BR /&gt;&lt;A href="http://hpux.connect.org.uk/hppd/hpux/Tcl/expect-5.43/" target="_blank"&gt;http://hpux.connect.org.uk/hppd/hpux/Tcl/expect-5.43/&lt;/A&gt;&lt;BR /&gt;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,&lt;BR /&gt;&lt;BR /&gt;Brian</description>
      <pubDate>Tue, 27 Nov 2007 14:42:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/using-sftp-with-perl/m-p/5081637#M92587</guid>
      <dc:creator>Brian Bartley</dc:creator>
      <dc:date>2007-11-27T14:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: using sftp with perl</title>
      <link>https://community.hpe.com/t5/operating-system-linux/using-sftp-with-perl/m-p/5081638#M92588</link>
      <description>Well, the regular Net:SFTP does do password handling fine (I got it working in my tests just fine).  But the build is a monster and worrisome to be dependent on such a rickety and maddening set up (at least for us).  I ended up using expect to get it done.</description>
      <pubDate>Tue, 27 Nov 2007 14:46:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/using-sftp-with-perl/m-p/5081638#M92588</guid>
      <dc:creator>TwoProc</dc:creator>
      <dc:date>2007-11-27T14:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: using sftp with perl</title>
      <link>https://community.hpe.com/t5/operating-system-linux/using-sftp-with-perl/m-p/5081639#M92589</link>
      <description>The binaries work fine that the one i'm using.</description>
      <pubDate>Tue, 27 Nov 2007 14:50:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/using-sftp-with-perl/m-p/5081639#M92589</guid>
      <dc:creator>David Bellamy</dc:creator>
      <dc:date>2007-11-27T14:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: using sftp with perl</title>
      <link>https://community.hpe.com/t5/operating-system-linux/using-sftp-with-perl/m-p/5081640#M92590</link>
      <description>Brian Google up the "HPUX Porting Archives" for a pre-built expect executable.  The one for the US is at utah.edu or utah.cs.edu (forget which).  You'll find it on Google easily enough.  The pre-built binaries work fine to a point - I had a few bugs and had to recompile to get some minor features working.  The source is available there too, and it's not a bad build at all (from what I remember).</description>
      <pubDate>Tue, 27 Nov 2007 14:50:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/using-sftp-with-perl/m-p/5081640#M92590</guid>
      <dc:creator>TwoProc</dc:creator>
      <dc:date>2007-11-27T14:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: using sftp with perl</title>
      <link>https://community.hpe.com/t5/operating-system-linux/using-sftp-with-perl/m-p/5081641#M92591</link>
      <description>Instead of prior posting with "utah.cs.edu" that's more likely to be "cs.utah.edu" for the HPUX porting archive.</description>
      <pubDate>Tue, 27 Nov 2007 14:52:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/using-sftp-with-perl/m-p/5081641#M92591</guid>
      <dc:creator>TwoProc</dc:creator>
      <dc:date>2007-11-27T14:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: using sftp with perl</title>
      <link>https://community.hpe.com/t5/operating-system-linux/using-sftp-with-perl/m-p/5081642#M92592</link>
      <description>Thanks for all replies, this is a great forum. I'll try the Expect solution, and I'll also ask the folks with the Windows server to see if they can do something hostbased that doesn't require passing credentials.&lt;BR /&gt;&lt;BR /&gt;Brian</description>
      <pubDate>Wed, 28 Nov 2007 16:26:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/using-sftp-with-perl/m-p/5081642#M92592</guid>
      <dc:creator>Brian Bartley</dc:creator>
      <dc:date>2007-11-28T16:26:38Z</dc:date>
    </item>
  </channel>
</rss>

