<?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: Scripting sftp with password authentication in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-sftp-with-password-authentication/m-p/5098641#M443741</link>
    <description>&amp;gt; HP-UX 11.11 SSH is " T1471AA A.04.30.002 HP-UX Secure Shell"&lt;BR /&gt;&lt;BR /&gt;You did not say if this is your server or the other party's server or both.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; without further involving the other party if at all possible.&lt;BR /&gt;&lt;BR /&gt;Why don't you get this working within your own environment? You have sftp and it should be easy to find an sshd specially if the above mentioned HP-UX environment is yours.</description>
    <pubDate>Wed, 19 Mar 2008 09:30:51 GMT</pubDate>
    <dc:creator>TTr</dc:creator>
    <dc:date>2008-03-19T09:30:51Z</dc:date>
    <item>
      <title>Scripting sftp with password authentication</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-sftp-with-password-authentication/m-p/5098640#M443740</link>
      <description>I'm attempting to automate an sftp process, but have been unable to provide the password that works interactively.&lt;BR /&gt;&lt;BR /&gt;The remote server is not ours and we would prefer to solve this without further involving the other party if at all possible.&lt;BR /&gt;&lt;BR /&gt;But every attempt I've made, reading and following various other articles in this forum, has failed. I've run it with debugging on and if -b or BatchMode Yes is given, no attempt is made to read the password from stdin or the batch file. It appears that authentication must complete before the batch file or stdin is read for commands.&lt;BR /&gt;&lt;BR /&gt;Is that the final word? Is there no way to non-interactively supply a password?&lt;BR /&gt;&lt;BR /&gt;This is HP-UX 11.11&lt;BR /&gt;SSH is " T1471AA A.04.30.002 HP-UX Secure Shell"</description>
      <pubDate>Wed, 19 Mar 2008 05:20:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-sftp-with-password-authentication/m-p/5098640#M443740</guid>
      <dc:creator>Carl Houseman</dc:creator>
      <dc:date>2008-03-19T05:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting sftp with password authentication</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-sftp-with-password-authentication/m-p/5098641#M443741</link>
      <description>&amp;gt; HP-UX 11.11 SSH is " T1471AA A.04.30.002 HP-UX Secure Shell"&lt;BR /&gt;&lt;BR /&gt;You did not say if this is your server or the other party's server or both.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; without further involving the other party if at all possible.&lt;BR /&gt;&lt;BR /&gt;Why don't you get this working within your own environment? You have sftp and it should be easy to find an sshd specially if the above mentioned HP-UX environment is yours.</description>
      <pubDate>Wed, 19 Mar 2008 09:30:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-sftp-with-password-authentication/m-p/5098641#M443741</guid>
      <dc:creator>TTr</dc:creator>
      <dc:date>2008-03-19T09:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting sftp with password authentication</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-sftp-with-password-authentication/m-p/5098642#M443742</link>
      <description>There is a way, using expect. &lt;BR /&gt;You have to install expect from the porting and archive centre.&lt;BR /&gt;The configure a simple expect script that waits for the login prompt, sends the username,&lt;BR /&gt;waits for the password prompt, sends the password,&lt;BR /&gt;then has a line at the end which says Interact.&lt;BR /&gt;&lt;BR /&gt;You then create a shell script which runs sftp in batch mode with expect.  I dont have an example here, but I did make it work previously.&lt;BR /&gt;&lt;BR /&gt;By the way, a better method than this is to send your key into the remote .ssh directory, so that it logs in using keys and does not request a password.&lt;BR /&gt;&lt;BR /&gt;As the previous post said, this doesnt always work with different ssh versions (e.g. HP-UX /windows didnt work for me so I had to use expect).&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 19 Mar 2008 12:31:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-sftp-with-password-authentication/m-p/5098642#M443742</guid>
      <dc:creator>Steve Lewis</dc:creator>
      <dc:date>2008-03-19T12:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting sftp with password authentication</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-sftp-with-password-authentication/m-p/5098643#M443743</link>
      <description>Hello Carl you can use either expect or perl take a look at this link for an idea how to use both.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://linux-bsd-central.com/index.php/content/view/26/" target="_blank"&gt;http://linux-bsd-central.com/index.php/content/view/26/&lt;/A&gt;</description>
      <pubDate>Wed, 19 Mar 2008 13:13:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-sftp-with-password-authentication/m-p/5098643#M443743</guid>
      <dc:creator>David Bellamy</dc:creator>
      <dc:date>2008-03-19T13:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting sftp with password authentication</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-sftp-with-password-authentication/m-p/5098644#M443744</link>
      <description>I can't tell by looking what the other party is using for sshd.&lt;BR /&gt;&lt;BR /&gt;The information about expect may be useful if they're unwilling to install our public key files.  Thanks everybody.</description>
      <pubDate>Wed, 19 Mar 2008 14:30:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-sftp-with-password-authentication/m-p/5098644#M443744</guid>
      <dc:creator>Carl Houseman</dc:creator>
      <dc:date>2008-03-19T14:30:56Z</dc:date>
    </item>
  </channel>
</rss>

