<?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 mode - Re: thread 985928 in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/sftp-in-batch-mode-re-thread-985928/m-p/5092260#M56147</link>
    <description>Solution Found!</description>
    <pubDate>Thu, 21 Feb 2008 18:28:28 GMT</pubDate>
    <dc:creator>Erik Harclerode</dc:creator>
    <dc:date>2008-02-21T18:28:28Z</dc:date>
    <item>
      <title>SFTP in batch mode - Re: thread 985928</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sftp-in-batch-mode-re-thread-985928/m-p/5092241#M56128</link>
      <description>Hi,&lt;BR /&gt;My apologies in advance for the long thread but I tried to be thorough and answer as many questions up front.  I've done lots of searching on these forums and it seems that the definitive thread for SFTP in batch mode is this thread:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=985928" target="_blank"&gt;http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=985928&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;After looking it over I still have a few questions. &lt;BR /&gt;&lt;BR /&gt;First, my situation is that I'm trying to FTP from OpenVMS to an external Unix server.  I, the client, am set up to accept all forms of authentication.  The server is set up to accept publickey and password authentication.  I am able to connect successfully manually, but not through batch mode.  When I do connect manually it asks for 2 passwords: first the key password and then the account password.&lt;BR /&gt;&lt;BR /&gt;I've created a file named batchtest.txt located in a drive named DSA106:[programmer].  I've also set up my IDENTIFICATION. file to point to the proper key as well as the SSH2_CONFIG. file to be set up with the host I'm trying to connect to, I'll call it "testhost" in this example.&lt;BR /&gt;&lt;BR /&gt;I try to connect as follows at the $ prompt:&lt;BR /&gt;SFTP "-B" DSA106:[programmer]batchtest.txt testhost&lt;BR /&gt;&lt;BR /&gt;batchtest.txt looks as follows:&lt;BR /&gt;"&lt;KEY password=""&gt;&lt;/KEY&gt;"&lt;ACCOUNT password=""&gt;"[lf]&lt;BR /&gt;&lt;BR /&gt;where [lf} is the ascii line feed command (in editor I used CTRL-V then CTRL-J)&lt;BR /&gt;&lt;BR /&gt;After executing my SFTP command I receive this error:&lt;BR /&gt;Authentication failed.&lt;BR /&gt;Disconnected; authentication cancelled by user (Authentication cancelled by user&lt;BR /&gt;.).&lt;BR /&gt;FATAL: ssh2 client failed to authenticate. (or you have too old ssh2 installed,&lt;BR /&gt;check with ssh2 "-V")&lt;BR /&gt; &lt;BR /&gt;%TCPIP-F-SSH_FATAL, non-specific fatal error condition&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Here is further information from -v:&lt;BR /&gt;debug: server offers auth methods 'publickey,password'.&lt;BR /&gt;debug: Ssh2AuthPubKeyClient/AUTHC-PUBKEY.C:1682: adding keyfile "/DSA106/program&lt;BR /&gt;mer/ssh2/ID_DSA_2048_A" to candidates&lt;BR /&gt;debug: Constructing and sending signature in publickey authentication.&lt;BR /&gt;debug: Ssh2AuthPubKeyClient/AUTHC-PUBKEY.C:874: ssh_client_auth_pubkey_send_sign&lt;BR /&gt;ature: reading /DSA106/programmer/ssh2/ID_DSA_2048_A&lt;BR /&gt;debug: Ssh2Common/SSHCOMMON.C:185: DISCONNECT received: Authentication cancelled&lt;BR /&gt; by user.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I've tried everything I could find online and have had no success, so I was hoping someone else could shed some light on this situation for me.  What am I doing wrong?&lt;BR /&gt;&lt;BR /&gt;I also notice in the 985928 thread that he uses something called login.com.  I have a login.com on the system but there is nothing in it, so I don't see how it would add value to my batch mode.&lt;BR /&gt;&lt;BR /&gt;Any help would be appreciated.&lt;/ACCOUNT&gt;</description>
      <pubDate>Tue, 12 Feb 2008 16:21:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sftp-in-batch-mode-re-thread-985928/m-p/5092241#M56128</guid>
      <dc:creator>Erik Harclerode</dc:creator>
      <dc:date>2008-02-12T16:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP in batch mode - Re: thread 985928</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sftp-in-batch-mode-re-thread-985928/m-p/5092242#M56129</link>
      <description>Erik,&lt;BR /&gt;&lt;BR /&gt;I have been able to set up hostbased authentication based on the SSH manual pointed to in the other thread more than 2 years ago. I've never used it again since, so I would have to start all over now...&lt;BR /&gt;&lt;BR /&gt;Maybe the fundamental misunderstanding is, that you can't use passwords stored in files with SFTP in batch mode. You need to configure hostbased authentication and this needs to be done both on the SSH client and SSH server.&lt;BR /&gt;&lt;BR /&gt;Volker.</description>
      <pubDate>Tue, 12 Feb 2008 17:12:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sftp-in-batch-mode-re-thread-985928/m-p/5092242#M56129</guid>
      <dc:creator>Volker Halle</dc:creator>
      <dc:date>2008-02-12T17:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP in batch mode - Re: thread 985928</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sftp-in-batch-mode-re-thread-985928/m-p/5092243#M56130</link>
      <description>Hi,&lt;BR /&gt;we uses SFTP in batch with publickey and not hostbased authentication.&lt;BR /&gt;&lt;BR /&gt;This is how we got it to work.&lt;BR /&gt;&lt;BR /&gt;$ ! Load key-pair to memory&lt;BR /&gt;$ ! -----------------------------------&lt;BR /&gt;$ SET NOVER ! Hide passwords from log&lt;BR /&gt;$ @sys$manager:tcpip$define_commands &lt;BR /&gt;$ open/write add_file temp.file&lt;BR /&gt;$ write add_file "$ssh_add -p id_dsa_ssh2"&lt;BR /&gt;$ write add_file "''pwd'"&lt;BR /&gt;$ close add_file&lt;BR /&gt;$&lt;BR /&gt;$ ssh_agent&lt;BR /&gt;$ wait 00:00:10 ! Wait for SSH_AGENT to start&lt;BR /&gt;$ @temp.file&lt;BR /&gt;$ delete/log temp.file;*&lt;BR /&gt;$ REST_VERIFY ! Restore Verify state&lt;BR /&gt;$ ssh_add -l ! List the key we loaded&lt;BR /&gt;$&lt;BR /&gt;... create sftp-batchfile... &lt;BR /&gt;... convert it to streamLF...&lt;BR /&gt;$ &lt;BR /&gt;$ sftp "-B" sftp-batch.file "''usr'"@'host'&lt;BR /&gt;$&lt;BR /&gt;&lt;BR /&gt;We get have a password database that we call to get the symbols HOST, USR and PWD and the symbol REST_VERIFY is setup to restore the verify state to what it was before we used the password.&lt;BR /&gt;&lt;BR /&gt;Try a test batch-file with something like:&lt;BR /&gt;ls[lf]&lt;BR /&gt;exit[lf]&lt;BR /&gt;in it at first.&lt;BR /&gt;&lt;BR /&gt;I'm not sure that the wait for the SSH_AGENT is needed, but when we exerimented to get this to work we sometimes got an agent error.&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;&lt;BR /&gt;/MÃ¥rten</description>
      <pubDate>Tue, 19 Feb 2008 12:18:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sftp-in-batch-mode-re-thread-985928/m-p/5092243#M56130</guid>
      <dc:creator>Mårten Holmberg</dc:creator>
      <dc:date>2008-02-19T12:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP in batch mode - Re: thread 985928</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sftp-in-batch-mode-re-thread-985928/m-p/5092244#M56131</link>
      <description>In any situation where you would need to&lt;BR /&gt;store a password/passphrase in a file, you&lt;BR /&gt;may wish to consider not using a scheme which&lt;BR /&gt;requires that password/passphrase.  In this&lt;BR /&gt;case, using a no-passphrase public key for&lt;BR /&gt;SSH/SFTP.  Storing a datum like this in a&lt;BR /&gt;file tends to defeat any added security which&lt;BR /&gt;it might otherwise add to the scheme.&lt;BR /&gt;&lt;BR /&gt;I normally use a no-passphrase public key for&lt;BR /&gt;SSH (and seldom use SFTP), so I know nothing,&lt;BR /&gt;but I would expect any interactive passkey&lt;BR /&gt;request to be made explicitly to the user's&lt;BR /&gt;terminal, not to any batch file, if only to&lt;BR /&gt;discourage users from storing passdata in a&lt;BR /&gt;file.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; where [lf} is the ascii line feed command&lt;BR /&gt;&amp;gt; (in editor I used CTRL-V then CTRL-J)&lt;BR /&gt;&lt;BR /&gt;If I thought that the LF was important, I'd&lt;BR /&gt;create/convert to a Record format: Stream_LF&lt;BR /&gt;file, instead of trying to add delimiters to&lt;BR /&gt;a file which already has some kind of record&lt;BR /&gt;separator scheme.&lt;BR /&gt;</description>
      <pubDate>Tue, 19 Feb 2008 16:12:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sftp-in-batch-mode-re-thread-985928/m-p/5092244#M56131</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-02-19T16:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP in batch mode - Re: thread 985928</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sftp-in-batch-mode-re-thread-985928/m-p/5092245#M56132</link>
      <description>SFTP from VMS to non-VMS usually trips up in the file format of the keys generated. There maybe a conversion step required on the other end to make sure the keys are in the correct format. VMS is really foreign to these UNIX hosts !&lt;BR /&gt;What is the other end ? We maybe able to help.&lt;BR /&gt;Are you able to SSH to the remote end ? &lt;BR /&gt;&lt;BR /&gt;Whose implementation of SFTP are you using ?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 19 Feb 2008 22:55:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sftp-in-batch-mode-re-thread-985928/m-p/5092245#M56132</guid>
      <dc:creator>Thomas Ritter</dc:creator>
      <dc:date>2008-02-19T22:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP in batch mode - Re: thread 985928</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sftp-in-batch-mode-re-thread-985928/m-p/5092246#M56133</link>
      <description>Erik,&lt;BR /&gt;&lt;BR /&gt;  Is there a reason you can't use a public key? Once that's configured properly, both SSH and SFTP work between systems without the need to feed passwords in.&lt;BR /&gt;&lt;BR /&gt;  As Thomas said, the biggest hurdle is getting the key file in the right format across different platforms. I don't think there's any universal advice. I think I tried generating keys at both ends, compared key files, and CONVERTed the file from the VMS end to look like the one at other end.&lt;BR /&gt;  &lt;BR /&gt;  That said, have you tried changing your &lt;LF&gt; characters into &lt;CR&gt;s in the batch file? I'd also try it without quotes.&lt;BR /&gt;&lt;BR /&gt;  I've also found that SSH and SFTP seem to care about where SYS$COMMAND comes from. In some cases immediately preceeding the command with:&lt;BR /&gt;&lt;BR /&gt;$ DEFINE/USER SYS$COMMAND NL:&lt;BR /&gt;&lt;BR /&gt;has solved odd behaviour.&lt;/CR&gt;&lt;/LF&gt;</description>
      <pubDate>Tue, 19 Feb 2008 23:46:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sftp-in-batch-mode-re-thread-985928/m-p/5092246#M56133</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2008-02-19T23:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP in batch mode - Re: thread 985928</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sftp-in-batch-mode-re-thread-985928/m-p/5092247#M56134</link>
      <description>&amp;gt; Is there a reason you can't use a public&lt;BR /&gt;&amp;gt; key? Once that's configured properly, both&lt;BR /&gt;&amp;gt; SSH and SFTP work between systems without&lt;BR /&gt;&amp;gt; the need to feed passwords in.&lt;BR /&gt;&lt;BR /&gt;That depends on how you created the key,&lt;BR /&gt;which can be done with or without a&lt;BR /&gt;passphrase.  For example, without:&lt;BR /&gt;&lt;BR /&gt;alp $ ssh alp&lt;BR /&gt;Authentication successful.&lt;BR /&gt;@ SYS$MANAGER:ANNOUNCE.TXT  [Great software.]&lt;BR /&gt;[...]&lt;BR /&gt;&lt;BR /&gt;Or with:&lt;BR /&gt;&lt;BR /&gt;alp $ ssh -i identification._pp alp&lt;BR /&gt;Passphrase for key "/ALP$DKA0/sms/ssh2/SMS_ID_DSA_1024_A" with comment "1024-bit&lt;BR /&gt; dsa, sms@alp.antinode.org, Fri Jun 27 2003 03:57:52": &lt;INSERT passphrase="" here.=""&gt;&lt;BR /&gt;&lt;BR /&gt;Authentication successful.&lt;BR /&gt;@ SYS$MANAGER:ANNOUNCE.TXT&lt;BR /&gt;[...]&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt; As Thomas said, the biggest hurdle [...]&lt;BR /&gt;&lt;BR /&gt;I'll admit that it would be nice to know that&lt;BR /&gt;a plain SSH works properly before diving into&lt;BR /&gt;messy SFTP procedures.&lt;/INSERT&gt;</description>
      <pubDate>Wed, 20 Feb 2008 05:32:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sftp-in-batch-mode-re-thread-985928/m-p/5092247#M56134</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-02-20T05:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP in batch mode - Re: thread 985928</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sftp-in-batch-mode-re-thread-985928/m-p/5092248#M56135</link>
      <description>Hi,&lt;BR /&gt;I don't know about Erik's environment, but in our case the keyfile is given to us from the host, so we can't have one without passphrase. &lt;BR /&gt;&lt;BR /&gt;The example I gave works for us, but if I could choose, I'd use a keyfile without a passphrase.&lt;BR /&gt;&lt;BR /&gt;Regarding the [lf] and/or stream_lf, you just have to test until you find the "thing" that works between your client and that host. And be prepared to test again if they, or you, applies any patches etc. to the sftp client/server.&lt;BR /&gt;&lt;BR /&gt;/MÃ¥rten</description>
      <pubDate>Wed, 20 Feb 2008 07:46:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sftp-in-batch-mode-re-thread-985928/m-p/5092248#M56135</guid>
      <dc:creator>Mårten Holmberg</dc:creator>
      <dc:date>2008-02-20T07:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP in batch mode - Re: thread 985928</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sftp-in-batch-mode-re-thread-985928/m-p/5092249#M56136</link>
      <description>I have created a new key without a password and sent it over to the person on the receiving end.  I just got word that they have it all loaded so I will attempt to connect again in batch mode and see what happens.&lt;BR /&gt;&lt;BR /&gt;My only concern now is that their system requires a user name and password to login so I'm wondering if this will work from the batch file or not. I guess I'll find out shortly!&lt;BR /&gt;&lt;BR /&gt;Thanks for your continued support!</description>
      <pubDate>Wed, 20 Feb 2008 13:19:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sftp-in-batch-mode-re-thread-985928/m-p/5092249#M56136</guid>
      <dc:creator>Erik Harclerode</dc:creator>
      <dc:date>2008-02-20T13:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP in batch mode - Re: thread 985928</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sftp-in-batch-mode-re-thread-985928/m-p/5092250#M56137</link>
      <description>Ok, good news.... once I created a new key without a password I am able to authenticate without a problem.  Now I am unable to get it to read my batch file for the account password.  Any ideas on how to pass this password in?</description>
      <pubDate>Wed, 20 Feb 2008 18:51:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sftp-in-batch-mode-re-thread-985928/m-p/5092250#M56137</guid>
      <dc:creator>Erik Harclerode</dc:creator>
      <dc:date>2008-02-20T18:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP in batch mode - Re: thread 985928</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sftp-in-batch-mode-re-thread-985928/m-p/5092251#M56138</link>
      <description>&amp;gt; Now I am unable to get it to read my batch&lt;BR /&gt;&amp;gt; file for the account password. Any ideas on&lt;BR /&gt;&amp;gt; how to pass this password in?&lt;BR /&gt;&lt;BR /&gt;Which "account password"?  What, exactly, are&lt;BR /&gt;you doing, and with what?  Around here:&lt;BR /&gt;&lt;BR /&gt;alp $ sftp sms@alp&lt;BR /&gt;sftp&amp;gt; pwd&lt;BR /&gt;ALP$DKA0:[SMS]&lt;BR /&gt;sftp&amp;gt; quit&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Once I'm in, I'm in.  I have no idea where&lt;BR /&gt;I'd put another password.&lt;BR /&gt;&lt;BR /&gt;Batch file, shmatch file.  Can you make this&lt;BR /&gt;task go interactively?  When you can, provide&lt;BR /&gt;a transcript, and then we can worry about how&lt;BR /&gt;to automate it further.</description>
      <pubDate>Wed, 20 Feb 2008 18:59:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sftp-in-batch-mode-re-thread-985928/m-p/5092251#M56138</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-02-20T18:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP in batch mode - Re: thread 985928</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sftp-in-batch-mode-re-thread-985928/m-p/5092252#M56139</link>
      <description>Hi,&lt;BR /&gt;I've always been able to run it interactively but now I'm trying to automate the login process so I can then automate an upload each day.  &lt;BR /&gt;&lt;BR /&gt;The password I'm referencing is one given to me from the receiver.  They gave me a user name and password to access their system.&lt;BR /&gt;&lt;BR /&gt;here is what it looks like:&lt;BR /&gt;&lt;BR /&gt;$ sftp plmweb&lt;BR /&gt;This is a private system.&lt;BR /&gt;Unauthorized access is prohibited and will&lt;BR /&gt;userid@&lt;A href="http://www.plmweb.org's" target="_blank"&gt;www.plmweb.org's&lt;/A&gt; password: &lt;BR /&gt;sftp&amp;gt; ls&lt;BR /&gt;.&lt;BR /&gt;Download&lt;BR /&gt;sftp&amp;gt;</description>
      <pubDate>Wed, 20 Feb 2008 20:11:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sftp-in-batch-mode-re-thread-985928/m-p/5092252#M56139</guid>
      <dc:creator>Erik Harclerode</dc:creator>
      <dc:date>2008-02-20T20:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP in batch mode - Re: thread 985928</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sftp-in-batch-mode-re-thread-985928/m-p/5092253#M56140</link>
      <description>&amp;gt; [...] once I created a new key without a&lt;BR /&gt;&amp;gt; password I am able to authenticate without&lt;BR /&gt;&amp;gt; a problem.&lt;BR /&gt;&lt;BR /&gt;Apparently not.  Perhaps you could provide a&lt;BR /&gt;transcript showing how you arrived at that.&lt;BR /&gt;Or does "without a problem" not imply&lt;BR /&gt;"without a password"?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; $ sftp plmweb&lt;BR /&gt;&amp;gt; This is a private system.&lt;BR /&gt;&amp;gt; Unauthorized access is prohibited and will&lt;BR /&gt;&amp;gt; userid@&lt;A href="http://www.plmweb.org's" target="_blank"&gt;www.plmweb.org's&lt;/A&gt; password: &lt;BR /&gt;&lt;BR /&gt;That would seem not to be using a key which&lt;BR /&gt;works without a password.  (Or any key at&lt;BR /&gt;all.  It looks like "password"&lt;BR /&gt;authentication, not "hostbased" or&lt;BR /&gt;"publickey".)&lt;BR /&gt;&lt;BR /&gt;Adding "-v" to your SSH or SFTP command&lt;BR /&gt;should show you more about which&lt;BR /&gt;authentication method were attempted, and&lt;BR /&gt;which one actually worked, along with other&lt;BR /&gt;potentially interesting details.</description>
      <pubDate>Wed, 20 Feb 2008 22:54:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sftp-in-batch-mode-re-thread-985928/m-p/5092253#M56140</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-02-20T22:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP in batch mode - Re: thread 985928</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sftp-in-batch-mode-re-thread-985928/m-p/5092254#M56141</link>
      <description>Hi Steve,&lt;BR /&gt;Initially I had a password on my SSH key, so when I SFTP'd to the server it would ask me for two sets of information.  First it would ask me for a password for my SSH key.  Once authenticated there it would ask me for a different account password, which is completely UNRELATED to the SSH key.  This account password was provided by the people I'm trying to connect to.&lt;BR /&gt;&lt;BR /&gt;Now, I've created a new SSH key WITHOUT a password and am able to connect to their system and not have to enter my SSH password, but it still asks for the account password.  So in a sense there are two levels of security, one with the SSH key and another with a simple user name and password login.  The new SSH key without the password gets me through the first door but now I need to figure out a way to feed the account password to the prompt so I can get completely onto their system.&lt;BR /&gt;&lt;BR /&gt;I hope this clears things up.&lt;BR /&gt;Thanks,&lt;BR /&gt;Erik</description>
      <pubDate>Thu, 21 Feb 2008 13:26:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sftp-in-batch-mode-re-thread-985928/m-p/5092254#M56141</guid>
      <dc:creator>Erik Harclerode</dc:creator>
      <dc:date>2008-02-21T13:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP in batch mode - Re: thread 985928</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sftp-in-batch-mode-re-thread-985928/m-p/5092255#M56142</link>
      <description>Since it is still asking you for the account password my first guess is that the public key authentication is failing.  Try doing an SSH with /DEBUG=4, if you see a line containing "Method 'publickey' disabled.", then you'll have confirmation that it is just moving from one authentication method to the next.&lt;BR /&gt;</description>
      <pubDate>Thu, 21 Feb 2008 15:58:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sftp-in-batch-mode-re-thread-985928/m-p/5092255#M56142</guid>
      <dc:creator>Richard Whalen</dc:creator>
      <dc:date>2008-02-21T15:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP in batch mode - Re: thread 985928</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sftp-in-batch-mode-re-thread-985928/m-p/5092256#M56143</link>
      <description>I have confirmed with the people that I'm connecting with that the account password is required after authentication.</description>
      <pubDate>Thu, 21 Feb 2008 16:14:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sftp-in-batch-mode-re-thread-985928/m-p/5092256#M56143</guid>
      <dc:creator>Erik Harclerode</dc:creator>
      <dc:date>2008-02-21T16:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP in batch mode - Re: thread 985928</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sftp-in-batch-mode-re-thread-985928/m-p/5092257#M56144</link>
      <description>If account password is required, then they must have a line equivalent to this in their configuration file:&lt;BR /&gt;&lt;BR /&gt;RequiredAuthentications     password&lt;BR /&gt;&lt;BR /&gt;Unfortunately, you are not going to get it to work in batch mode in this case.</description>
      <pubDate>Thu, 21 Feb 2008 16:29:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sftp-in-batch-mode-re-thread-985928/m-p/5092257#M56144</guid>
      <dc:creator>Richard Whalen</dc:creator>
      <dc:date>2008-02-21T16:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP in batch mode - Re: thread 985928</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sftp-in-batch-mode-re-thread-985928/m-p/5092258#M56145</link>
      <description>Ok, closing this thread.  I finally got it to work.  I convinced the people to let me have a single authentication and remove the account password piece of this problem.  Now I am able to login without any problems.&lt;BR /&gt;&lt;BR /&gt;thanks to all who helped!</description>
      <pubDate>Thu, 21 Feb 2008 17:56:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sftp-in-batch-mode-re-thread-985928/m-p/5092258#M56145</guid>
      <dc:creator>Erik Harclerode</dc:creator>
      <dc:date>2008-02-21T17:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP in batch mode - Re: thread 985928</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sftp-in-batch-mode-re-thread-985928/m-p/5092259#M56146</link>
      <description>&amp;gt; I convinced [...]&lt;BR /&gt;&lt;BR /&gt;If you told me that the extra password&lt;BR /&gt;would end up being stored in a file&lt;BR /&gt;somewhere, then I'd sure be willing to forgo&lt;BR /&gt;the extra "security".</description>
      <pubDate>Thu, 21 Feb 2008 18:28:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sftp-in-batch-mode-re-thread-985928/m-p/5092259#M56146</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-02-21T18:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP in batch mode - Re: thread 985928</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sftp-in-batch-mode-re-thread-985928/m-p/5092260#M56147</link>
      <description>Solution Found!</description>
      <pubDate>Thu, 21 Feb 2008 18:28:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sftp-in-batch-mode-re-thread-985928/m-p/5092260#M56147</guid>
      <dc:creator>Erik Harclerode</dc:creator>
      <dc:date>2008-02-21T18:28:28Z</dc:date>
    </item>
  </channel>
</rss>

