<?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: SAS Sftp connection issue in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Sftp-connection-issue/m-p/709441#M218158</link>
    <description>&lt;P&gt;By any chance did you try starting that filename statement with&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;filename test sftp '3.xlsx'&lt;/LI-CODE&gt;
&lt;P&gt;no preceding /&lt;/P&gt;</description>
    <pubDate>Tue, 05 Jan 2021 15:42:41 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2021-01-05T15:42:41Z</dc:date>
    <item>
      <title>SAS Sftp connection issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Sftp-connection-issue/m-p/709362#M218112</link>
      <description>&lt;P&gt;Currently I'm trying to use sas to connect to sftp server. I did some researches, it said in order to use sftp method, I need to install openSSH client software and use key authentication for connection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I installed puTTY and setup the private/public key. When I test the connection from psftp, I can connect to sftp server without password (use key authentication). As you can see as below, the test file 3.xlsx is on the sftp server.&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="1.PNG" style="width: 679px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/53210i381C785EB87099F0/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.PNG" alt="1.PNG" /&gt;&lt;/span&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;&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;&lt;P&gt;&lt;SPAN&gt;But the problem is when I try to get the same file on sas, it has an error "the file does not exist".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 714px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/53211i4AC2E09430697C56/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Inside psftp, I could download this test file on my local pc, I have no idea why I cant do the same thing on sas.&lt;/P&gt;&lt;P&gt;Below is my sas sftp connection code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename test sftp '/3.xlsx'
optionsx='-P 222 -i x:\PuTTY\privatekey.ppk -pw "XXXXXXX" -V'
host="XXXXXXXX" user="XXXXXXXX" path="x:\PuTTY\psftp.exe" DEBUG;&lt;/CODE&gt;&lt;/PRE&gt;&lt;DIV class="s-prose js-post-body"&gt;&lt;P&gt;I would be so appreciate if someone can help me to fix this issue.&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2021 02:34:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Sftp-connection-issue/m-p/709362#M218112</guid>
      <dc:creator>Wangya1</dc:creator>
      <dc:date>2021-01-05T02:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Sftp connection issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Sftp-connection-issue/m-p/709441#M218158</link>
      <description>&lt;P&gt;By any chance did you try starting that filename statement with&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;filename test sftp '3.xlsx'&lt;/LI-CODE&gt;
&lt;P&gt;no preceding /&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2021 15:42:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Sftp-connection-issue/m-p/709441#M218158</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-01-05T15:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Sftp connection issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Sftp-connection-issue/m-p/709443#M218160</link>
      <description>&lt;P&gt;I tried, its not working. Even if I just want to test with simple cmd like 'LS', I still get error msg like "file '' does not exist'.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2021 15:46:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Sftp-connection-issue/m-p/709443#M218160</guid>
      <dc:creator>Wangya1</dc:creator>
      <dc:date>2021-01-05T15:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Sftp connection issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Sftp-connection-issue/m-p/709460#M218170</link>
      <description>&lt;P&gt;I don't know enough, basically nothing, about Putty.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Had you found either of these:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.lexjansen.com/sesug/2017/CC-115.pdf" target="_blank"&gt;https://www.lexjansen.com/sesug/2017/CC-115.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://amadeus.co.uk/tips/retrieving-files-from-an-sftp-site/" target="_blank"&gt;https://amadeus.co.uk/tips/retrieving-files-from-an-sftp-site/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That seem to provide more concrete details.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2021 16:38:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Sftp-connection-issue/m-p/709460#M218170</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-01-05T16:38:13Z</dc:date>
    </item>
  </channel>
</rss>

