<?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: CONNECTION SFTP ERROR in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/CONNECTION-SFTP-ERROR/m-p/882005#M348484</link>
    <description>&lt;P&gt;And the text of the actual error is?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Need to see the actual error message(s). You may need to provide the log of the entire code as things with libnames that aren't reported as errors sometimes make them unusable for specific tasks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/332963"&gt;@dipand&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello to all, I have to transfer a file from the sas server to another via SFTP connection. My system administrator installed the private key on the server. I try to run the following code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;filename out sftp "SPM_KPI_HSEQALL_MAY2023.csv" host='XXXXXXX' debug&lt;BR /&gt;cd='01_IMPORTED_KPI' user='XXXXX' optionsx='-i&amp;nbsp; /home/risorse/asea007/.ssh/SPM_PVTK.ppk -pw "XXXXXX"';&lt;/P&gt;
&lt;P&gt;data _null_;&lt;BR /&gt;infile "/sasgrid/hseq/1_0/SPM_KPI_HSEQALL_MAY2023.csv" recfm=n ;&lt;BR /&gt;input x $char1. @@;&lt;BR /&gt;file out recfm=s;&lt;BR /&gt;put x $char1. @@;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you help me figure out if there’s something wrong with the code?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Jun 2023 18:52:01 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2023-06-22T18:52:01Z</dc:date>
    <item>
      <title>CONNECTION SFTP ERROR</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CONNECTION-SFTP-ERROR/m-p/881985#M348481</link>
      <description>&lt;P&gt;Hello to all, I have to transfer a file from the sas server to another via SFTP connection. My system administrator installed the private key on the server. I try to run the following code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;filename out sftp "SPM_KPI_HSEQALL_MAY2023.csv" host='XXXXXXX' debug&lt;BR /&gt;cd='01_IMPORTED_KPI' user='XXXXX' optionsx='-i&amp;nbsp; /home/risorse/asea007/.ssh/SPM_PVTK.ppk -pw "XXXXXX"';&lt;/P&gt;
&lt;P&gt;data _null_;&lt;BR /&gt;infile "/sasgrid/hseq/1_0/SPM_KPI_HSEQALL_MAY2023.csv" recfm=n ;&lt;BR /&gt;input x $char1. @@;&lt;BR /&gt;file out recfm=s;&lt;BR /&gt;put x $char1. @@;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you help me figure out if there’s something wrong with the code?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2023 17:55:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CONNECTION-SFTP-ERROR/m-p/881985#M348481</guid>
      <dc:creator>dipand</dc:creator>
      <dc:date>2023-06-22T17:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: CONNECTION SFTP ERROR</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CONNECTION-SFTP-ERROR/m-p/882005#M348484</link>
      <description>&lt;P&gt;And the text of the actual error is?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Need to see the actual error message(s). You may need to provide the log of the entire code as things with libnames that aren't reported as errors sometimes make them unusable for specific tasks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/332963"&gt;@dipand&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello to all, I have to transfer a file from the sas server to another via SFTP connection. My system administrator installed the private key on the server. I try to run the following code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;filename out sftp "SPM_KPI_HSEQALL_MAY2023.csv" host='XXXXXXX' debug&lt;BR /&gt;cd='01_IMPORTED_KPI' user='XXXXX' optionsx='-i&amp;nbsp; /home/risorse/asea007/.ssh/SPM_PVTK.ppk -pw "XXXXXX"';&lt;/P&gt;
&lt;P&gt;data _null_;&lt;BR /&gt;infile "/sasgrid/hseq/1_0/SPM_KPI_HSEQALL_MAY2023.csv" recfm=n ;&lt;BR /&gt;input x $char1. @@;&lt;BR /&gt;file out recfm=s;&lt;BR /&gt;put x $char1. @@;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you help me figure out if there’s something wrong with the code?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2023 18:52:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CONNECTION-SFTP-ERROR/m-p/882005#M348484</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-06-22T18:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: CONNECTION SFTP ERROR</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CONNECTION-SFTP-ERROR/m-p/882071#M348508</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the error is :&lt;/P&gt;
&lt;P&gt;The folder or file doesn't exist.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="sasLogNote3_1687498527991" class="sasNote"&gt;NOTE: unknown option -- w&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;usage: sftp [-1246aCfpqrv] [-B buffer_size] [-b batchfile] [-c cipher]&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;[-D sftp_server_path]&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;[-F ssh_config] [-i identity_file] [-l limit]&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;[-o ssh_option] [-P port] [-R num_requests] [-S program]&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;[-s subsystem | sftp_server] host&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;sftp [user@]host[:file ...]&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;sftp [user@]host[:dir[/]]&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;sftp -b&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;batchfile [user@]host&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;PRE id="pre_sasLog_10872" class="sasLog"&gt;&amp;nbsp;&lt;/PRE&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 05:38:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CONNECTION-SFTP-ERROR/m-p/882071#M348508</guid>
      <dc:creator>dipand</dc:creator>
      <dc:date>2023-06-23T05:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: CONNECTION SFTP ERROR</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CONNECTION-SFTP-ERROR/m-p/882078#M348511</link>
      <description>&lt;P&gt;If I delete the options -pw because&amp;nbsp; my SAS administrator has installed the key on server , the error that I recieve is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Error:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Couldn't read packet: Connection reset by peer&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 07:45:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CONNECTION-SFTP-ERROR/m-p/882078#M348511</guid>
      <dc:creator>dipand</dc:creator>
      <dc:date>2023-06-23T07:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: CONNECTION SFTP ERROR</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CONNECTION-SFTP-ERROR/m-p/882108#M348517</link>
      <description>&lt;P&gt;Hi resolved, there was a problem with key authoritazion.&lt;/P&gt;
&lt;P&gt;the correct code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;filename out sftp "SPM_KPI_HSEQALL_MAY2023.csv"&amp;nbsp; host='XXXXXXXXX' debug&lt;BR /&gt;cd='01_IMPORTED_KPI' user='XXXXXXXXX' optionsx='-i /home/aaa/.ssh/SPM_PVTK.ppk';&lt;/P&gt;
&lt;P&gt;data _null_;&lt;BR /&gt;infile "/sasgrid/hseq/1_0/SPM_KPI_HSEQALL_MAY2023.csv" recfm=n ;&lt;BR /&gt;input x $char1. @@;&lt;BR /&gt;file out recfm=s;&lt;BR /&gt;put x $char1. @@;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Than you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 10:08:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CONNECTION-SFTP-ERROR/m-p/882108#M348517</guid>
      <dc:creator>dipand</dc:creator>
      <dc:date>2023-06-23T10:08:28Z</dc:date>
    </item>
  </channel>
</rss>

