<?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 SFTP failure from SAS EG SAS Host key verification failed in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SFTP-failure-from-SAS-EG-SAS-Host-key-verification-failed/m-p/471973#M120944</link>
    <description>&lt;P&gt;I am getting the following error message when I try to sftp from SAS EG:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAS Host key verification failed. Couldn't read packet: Connection reset by peer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is when I execute the sftp command using the x command e.g.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;x&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;"sftp my_user@mytest.vvv.sss.xxxxxx.com.aa"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;; XCMD is enabled as I can issue other x commands successfully.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;This is even though I am logged on in EG as the same user that has been set up with the public and private keys on the Unix server and my code is submitted to run on that server.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;If I log on to the unix server directly with the same account id as in EG using Putty, and issue the same command, &lt;FONT color="#800080" face="Courier New"&gt;sftp my_user@mytest.vvv.sss.xxxxxx.com.aa &lt;FONT color="#000000"&gt;it works, and connects successfully to the remote sftp server.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New"&gt;&lt;FONT color="#000000"&gt;Any suggestions welcome.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Jun 2018 04:38:51 GMT</pubDate>
    <dc:creator>k1w1</dc:creator>
    <dc:date>2018-06-21T04:38:51Z</dc:date>
    <item>
      <title>SFTP failure from SAS EG SAS Host key verification failed</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SFTP-failure-from-SAS-EG-SAS-Host-key-verification-failed/m-p/471973#M120944</link>
      <description>&lt;P&gt;I am getting the following error message when I try to sftp from SAS EG:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAS Host key verification failed. Couldn't read packet: Connection reset by peer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is when I execute the sftp command using the x command e.g.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;x&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;"sftp my_user@mytest.vvv.sss.xxxxxx.com.aa"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;; XCMD is enabled as I can issue other x commands successfully.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;This is even though I am logged on in EG as the same user that has been set up with the public and private keys on the Unix server and my code is submitted to run on that server.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;If I log on to the unix server directly with the same account id as in EG using Putty, and issue the same command, &lt;FONT color="#800080" face="Courier New"&gt;sftp my_user@mytest.vvv.sss.xxxxxx.com.aa &lt;FONT color="#000000"&gt;it works, and connects successfully to the remote sftp server.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New"&gt;&lt;FONT color="#000000"&gt;Any suggestions welcome.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 04:38:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SFTP-failure-from-SAS-EG-SAS-Host-key-verification-failed/m-p/471973#M120944</guid>
      <dc:creator>k1w1</dc:creator>
      <dc:date>2018-06-21T04:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP failure from SAS EG SAS Host key verification failed</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SFTP-failure-from-SAS-EG-SAS-Host-key-verification-failed/m-p/471996#M120960</link>
      <description>&lt;P&gt;Just a hunch: immediately before you try the sftp, do&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;x 'cd $HOME';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Also, retrieve all responses to the sftp command:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename oscmd pipe 'sftp my_user@mytest.vvv.sss.xxxxxx.com.aa 2&amp;gt;&amp;amp;1';
data _null_;
infile oscmd;
input;
put _infile_;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Jun 2018 07:31:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SFTP-failure-from-SAS-EG-SAS-Host-key-verification-failed/m-p/471996#M120960</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-06-21T07:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP failure from SAS EG SAS Host key verification failed</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SFTP-failure-from-SAS-EG-SAS-Host-key-verification-failed/m-p/473577#M121552</link>
      <description>&lt;P&gt;ok the problem is solved. It turned out that because we are operating in a grid environment, the keys need to be verified on all 4 grid hosts and a known_hosts file created on each. Once this was done and a few underlying permission changed made by the unix admin guy the code worked like a dream and all was good in the world. Thanks to all those who tried to help with this tricky issue.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2018 01:40:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SFTP-failure-from-SAS-EG-SAS-Host-key-verification-failed/m-p/473577#M121552</guid>
      <dc:creator>k1w1</dc:creator>
      <dc:date>2018-06-27T01:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP failure from SAS EG SAS Host key verification failed</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SFTP-failure-from-SAS-EG-SAS-Host-key-verification-failed/m-p/473608#M121555</link>
      <description>&lt;P&gt;"Working in a grid" is always important information, as it often explains "intermittent" failures caused by different configurations on the individual nodes.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2018 06:10:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SFTP-failure-from-SAS-EG-SAS-Host-key-verification-failed/m-p/473608#M121555</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-06-27T06:10:24Z</dc:date>
    </item>
  </channel>
</rss>

