<?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 batch file problems in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/sftp-batch-file-problems/m-p/5195433#M58765</link>
    <description>Robert,&lt;BR /&gt;&lt;BR /&gt;password entry only works interactively.&lt;BR /&gt;&lt;BR /&gt;To use SSH/SCP/SFTP in batch, you have to establish an authentication without password, e.g. using public/private keys.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Martin</description>
    <pubDate>Wed, 26 Aug 2009 10:10:46 GMT</pubDate>
    <dc:creator>Martin Vorlaender</dc:creator>
    <dc:date>2009-08-26T10:10:46Z</dc:date>
    <item>
      <title>SFTP batch file problems</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sftp-batch-file-problems/m-p/5195432#M58764</link>
      <description>Trying to SFTP2 using this command&lt;BR /&gt;&lt;BR /&gt;sftp2 "-B"zxc.ftp egduser@128.8.204.122&lt;BR /&gt;&lt;BR /&gt;zxc.ftp contains one line &lt;BR /&gt;'password'&lt;BR /&gt;&lt;BR /&gt;Manually this works fine eg&lt;BR /&gt; &lt;BR /&gt;sftp2 egduser@128.8.204.122&lt;BR /&gt;type in the password and you are logged in&lt;BR /&gt;batch gives this error.......&lt;BR /&gt;&lt;BR /&gt;DAVE$ sftp2 "-B"zxc.ftp egduser@128.8.204.122&lt;BR /&gt;&lt;BR /&gt;FATAL: ssh2 client failed to authenticate. (or you have too old ssh2 installed, check with ssh2 "-V")&lt;BR /&gt;&lt;BR /&gt;warning: Authentication failed.&lt;BR /&gt;Disconnected; no more authentication methods available (No further authenticatio&lt;BR /&gt;n methods available.).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;%TCPIP-F-SSH_FATAL, non-specific fatal error condition&lt;BR /&gt;DAVE$&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;SSH2 "-V" gives&lt;BR /&gt;&lt;BR /&gt;dave$dkb0:[sys0.syscommon.][sysexe]tcpip$ssh_ssh2.exe: SSH Secure Shell OpenVMS&lt;BR /&gt;(V5.5) 3.2.0 on COMPAQ AlphaServer DS20E 666 MHz - VMS V7.3-2&lt;BR /&gt;&lt;BR /&gt;any help please&lt;BR /&gt;thanks robert&lt;BR /&gt;</description>
      <pubDate>Wed, 26 Aug 2009 09:53:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sftp-batch-file-problems/m-p/5195432#M58764</guid>
      <dc:creator>robert70</dc:creator>
      <dc:date>2009-08-26T09:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP batch file problems</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sftp-batch-file-problems/m-p/5195433#M58765</link>
      <description>Robert,&lt;BR /&gt;&lt;BR /&gt;password entry only works interactively.&lt;BR /&gt;&lt;BR /&gt;To use SSH/SCP/SFTP in batch, you have to establish an authentication without password, e.g. using public/private keys.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Martin</description>
      <pubDate>Wed, 26 Aug 2009 10:10:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sftp-batch-file-problems/m-p/5195433#M58765</guid>
      <dc:creator>Martin Vorlaender</dc:creator>
      <dc:date>2009-08-26T10:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP batch file problems</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sftp-batch-file-problems/m-p/5195434#M58766</link>
      <description>Thanks Martin,&lt;BR /&gt;Total Novice at all of this&lt;BR /&gt;How would I go about such a setup?</description>
      <pubDate>Wed, 26 Aug 2009 10:24:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sftp-batch-file-problems/m-p/5195434#M58766</guid>
      <dc:creator>robert70</dc:creator>
      <dc:date>2009-08-26T10:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP batch file problems</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sftp-batch-file-problems/m-p/5195435#M58767</link>
      <description>Robert,&lt;BR /&gt;&lt;BR /&gt;setting up public/private key authorization is described for HP TCP/IP services at &lt;A href="http://h71000.www7.hp.com/doc/732final/aa-rvbua-te/00/00/24-con.html" target="_blank"&gt;http://h71000.www7.hp.com/doc/732final/aa-rvbua-te/00/00/24-con.html&lt;/A&gt; under "Customizing Public-Key Authentication". For OpenSSH (the variant used by various Unixes) see &lt;A href="http://sial.org/howto/openssh/publickey-auth/" target="_blank"&gt;http://sial.org/howto/openssh/publickey-auth/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;To use the ssh_keygen tool (note the underscore instead of the hyphen used in Unix), you'll have to define some foreign commands using&lt;BR /&gt;&lt;BR /&gt;$ @SYS$MANAGER:TCPIP$DEFINE_COMMANDS.COM&lt;BR /&gt;&lt;BR /&gt;Another complication stems from the fact that VMS SSH is NOT derived from OpenSSH, but instead is a port of the commercial implementation. The two products use a different file format to store keys. Unfortunately, the VMS ssh_keygen tool lacks the ability to convert the public key to OpenSSH format (should your Non-VMS server use that), so you'll have to do that on the server, using&lt;BR /&gt;&lt;BR /&gt;# ssh-keygen -i -f vms-format-key &amp;gt; openssh-format-key&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Martin</description>
      <pubDate>Wed, 26 Aug 2009 11:01:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sftp-batch-file-problems/m-p/5195435#M58767</guid>
      <dc:creator>Martin Vorlaender</dc:creator>
      <dc:date>2009-08-26T11:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP batch file problems</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sftp-batch-file-problems/m-p/5195436#M58768</link>
      <description>Here's the basic sequence for no-password login for a Unix box accessing an OpenVMS box via ssh:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://labs.hoffmanlabs.com/node/1118" target="_blank"&gt;http://labs.hoffmanlabs.com/node/1118&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;For your specific purposes here, the ssh manual is what you want to read.</description>
      <pubDate>Wed, 26 Aug 2009 13:20:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sftp-batch-file-problems/m-p/5195436#M58768</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2009-08-26T13:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP batch file problems</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sftp-batch-file-problems/m-p/5195437#M58769</link>
      <description>thanks&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Nov 2009 15:44:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sftp-batch-file-problems/m-p/5195437#M58769</guid>
      <dc:creator>robert70</dc:creator>
      <dc:date>2009-11-10T15:44:30Z</dc:date>
    </item>
  </channel>
</rss>

