<?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: SFTP in batch not working in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/sftp-in-batch-not-working/m-p/5614601#M28283</link>
    <description>&lt;P&gt;One of the documents that's linked is an illustrated description of how to set up a certificate-based login, and it's specifically tailored for Microsoft Windows users working with PuTTY terminal emulator. &amp;nbsp;It also covers OS X as a client, which uses OpenSSL. &amp;nbsp;(OpenVMS also uses an ancient and somewhat wonky port of OpenSSL.)&lt;/P&gt;</description>
    <pubDate>Tue, 10 Apr 2012 21:32:26 GMT</pubDate>
    <dc:creator>Hoff</dc:creator>
    <dc:date>2012-04-10T21:32:26Z</dc:date>
    <item>
      <title>SFTP in batch not working</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sftp-in-batch-not-working/m-p/5614505#M28278</link>
      <description>&lt;P&gt;I can use SFTP interactively just fine to connect to a client's FTP site.&amp;nbsp;&amp;nbsp; To do this I created a user on my system with the same name as the FTP user on the client's server, then when logged in as the new user, I use the following command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;$ SFTP ftp.clientsaddress.com&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It prompts me for&amp;nbsp; a password and I login just fine.&amp;nbsp;&amp;nbsp; To do this in batch mode, I created a text file pwd.txt with the password in it.&amp;nbsp;&amp;nbsp; Then logged in as that same user, I issue the following command:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;$ SFTP "-B" pwd.txt&amp;nbsp; ftp.clientsaddress.com&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;warning: Authentication failed.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;Disconnected; no more authentication methods available (No further authentication methods available.).&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;FATAL: ssh2 client failed to authenticate. (or you have too old ssh2 installed, check with ssh2 "-V")&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have checked the ssh2 version:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;$ ssh2 "-V"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;alpha2$dke0:[sys0.syscommon.][sysexe]tcpip$ssh_ssh2.exe: SSH Secure Shell OpenVMS (V5.5) 3.2.0 on AlphaServer DS25 - VMS V8.3&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Other version info:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;&amp;nbsp; HP TCP/IP Services for OpenVMS Alpha Version V5.6&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;&amp;nbsp; on an AlphaServer DS25 running OpenVMS V8.3 &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2012 18:56:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sftp-in-batch-not-working/m-p/5614505#M28278</guid>
      <dc:creator>Tschroeder</dc:creator>
      <dc:date>2012-04-10T18:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP in batch not working</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sftp-in-batch-not-working/m-p/5614535#M28279</link>
      <description />
      <pubDate>Tue, 10 Apr 2012 19:43:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sftp-in-batch-not-working/m-p/5614535#M28279</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2012-04-10T19:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP in batch not working</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sftp-in-batch-not-working/m-p/5614543#M28280</link>
      <description>&lt;P&gt;Using sftp to connect to an ftp site won't work. &amp;nbsp;I'll assume that a connection to an sftp server was intended.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The file specification after the -B isn't a file containing a password, it's a file containing sftp transfer commands.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(And quoting from the HP documentation for this sftp stuff: "SYS$INPUT, SYS$OUTPUT, and SYS$ERROR may not work as you expect." &amp;nbsp;They definitely don't.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to use sftp in batch, then you will want to set up the certificate-based login path. &amp;nbsp;Some details on setting up the sftp and ssh and the rest of the certificate-based operations are&amp;nbsp;&lt;A href="http://labs.hoffmanlabs.com/node/1118" target="_blank"&gt;here&lt;/A&gt;&amp;nbsp;and &lt;A href="http://labs.hoffmanlabs.com/node/1760" target="_blank"&gt;here&lt;/A&gt;&amp;nbsp;and &lt;A href="http://labs.hoffmanlabs.com/node/1116" target="_blank"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2012 19:52:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sftp-in-batch-not-working/m-p/5614543#M28280</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2012-04-10T19:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP in batch not working</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sftp-in-batch-not-working/m-p/5614557#M28281</link>
      <description>Thanks for the info. I will talk to my client and see if they want to setup an exchange of public keys. If so, I will have to figure out how to create those in OpenVMS</description>
      <pubDate>Tue, 10 Apr 2012 20:23:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sftp-in-batch-not-working/m-p/5614557#M28281</guid>
      <dc:creator>Tschroeder</dc:creator>
      <dc:date>2012-04-10T20:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP in batch not working</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sftp-in-batch-not-working/m-p/5614597#M28282</link>
      <description />
      <pubDate>Tue, 10 Apr 2012 21:13:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sftp-in-batch-not-working/m-p/5614597#M28282</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2012-04-10T21:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP in batch not working</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sftp-in-batch-not-working/m-p/5614601#M28283</link>
      <description>&lt;P&gt;One of the documents that's linked is an illustrated description of how to set up a certificate-based login, and it's specifically tailored for Microsoft Windows users working with PuTTY terminal emulator. &amp;nbsp;It also covers OS X as a client, which uses OpenSSL. &amp;nbsp;(OpenVMS also uses an ancient and somewhat wonky port of OpenSSL.)&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2012 21:32:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sftp-in-batch-not-working/m-p/5614601#M28283</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2012-04-10T21:32:26Z</dc:date>
    </item>
  </channel>
</rss>

