<?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: How to establish a connection to an sFTP server? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-establish-a-connection-to-an-sFTP-server/m-p/933648#M367190</link>
    <description>&lt;P&gt;The &lt;STRONG&gt;-&lt;/STRONG&gt;pw (note the dash) option in example 6 specifies a pass phrase needed to open the .ppk file containing the private key. It is an option internal to WinSCP, and has nothing to do with an sftp password used to log on to a server.&lt;/P&gt;</description>
    <pubDate>Tue, 25 Jun 2024 07:02:05 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2024-06-25T07:02:05Z</dc:date>
    <item>
      <title>How to establish a connection to an sFTP server?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-establish-a-connection-to-an-sFTP-server/m-p/933632#M367178</link>
      <description>&lt;P&gt;Hi folks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been following the SAS documentation on this &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lestmtsglobal/p0xln1fiwsr340n1xxf4mkmfxp6f.htm" target="_self"&gt;link&lt;/A&gt;&amp;nbsp;, especially example 6 to the below code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;filename output sftp lsa
                     host="sftphost"
                     optionsx='pw "somepw"' user="userid" debug;

data temp;
    infile output truncover;
    input a $200.;;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Basically, I am just trying to connect to the server and list all the files under the working directory, but I got the error message saying "ERROR: Directory or file ls -a w "somepw" &lt;A href="mailto:userid@sftphost" target="_blank" rel="noopener"&gt;userid@sftphost&lt;/A&gt;&amp;nbsp;doesn't exist.". So, what am I missing here?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 04:54:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-establish-a-connection-to-an-sFTP-server/m-p/933632#M367178</guid>
      <dc:creator>kingcu</dc:creator>
      <dc:date>2024-06-25T04:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to establish a connection to an sFTP server?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-establish-a-connection-to-an-sFTP-server/m-p/933637#M367182</link>
      <description>&lt;P&gt;Did you see these notes?&lt;/P&gt;
&lt;UL&gt;
&lt;LI id="n0ceh6v5t34ixdn11k7dh5x0lnkb" class="xisDoc-note"&gt;&lt;SPAN class="xisDoc-noteGenText"&gt;Note: &lt;/SPAN&gt;Password validation is not supported for the SFTP access method.&lt;/LI&gt;
&lt;LI id="p06ti08q3apxtan1976pcivcjcqn" class="xisDoc-note"&gt;&lt;SPAN class="xisDoc-noteGenText"&gt;Note: &lt;/SPAN&gt;Public key authentication using an SSH agent is the recommended way to connect to a remote SSHD server.&lt;/LI&gt;
&lt;LI id="p1wi77w7bsfpbtn1rk8nev7sdyn0" class="xisDoc-note"&gt;&lt;SPAN class="xisDoc-noteGenText"&gt;Note: &lt;/SPAN&gt;If you have trouble running the SFTP access method, try to manually validate SFTP client access to an OpenSSH SSHD server without involving the SAS system. Manually validating SFTP client access without involving the SAS system ensures that your SSH or SSHD configuration and key authentication is setup correctly.&lt;/LI&gt;
&lt;/UL&gt;
&lt;DIV class="xisDoc-note"&gt;Did you validate the connection without SAS using ssh?&lt;/DIV&gt;</description>
      <pubDate>Tue, 25 Jun 2024 05:08:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-establish-a-connection-to-an-sFTP-server/m-p/933637#M367182</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2024-06-25T05:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to establish a connection to an sFTP server?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-establish-a-connection-to-an-sFTP-server/m-p/933639#M367184</link>
      <description>&lt;P&gt;I don't see any of those notes. I did validate the username and password using WinSCP client.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 05:18:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-establish-a-connection-to-an-sFTP-server/m-p/933639#M367184</guid>
      <dc:creator>kingcu</dc:creator>
      <dc:date>2024-06-25T05:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to establish a connection to an sFTP server?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-establish-a-connection-to-an-sFTP-server/m-p/933640#M367185</link>
      <description>Ok, I just tested this on Mac by using the sftp command line and I can log in the remote server with the same credential with no problem. And when I logged in, I type ls command and it listed all the folders and files there.</description>
      <pubDate>Tue, 25 Jun 2024 05:24:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-establish-a-connection-to-an-sFTP-server/m-p/933640#M367185</guid>
      <dc:creator>kingcu</dc:creator>
      <dc:date>2024-06-25T05:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to establish a connection to an sFTP server?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-establish-a-connection-to-an-sFTP-server/m-p/933642#M367186</link>
      <description>&lt;P&gt;You&amp;nbsp;&lt;STRONG&gt;must&lt;/STRONG&gt; set up passwordless authentication with your local (on the SAS server) sftp client first, using a public/private keypair.&lt;/P&gt;
&lt;P&gt;Since SAS uses an external sftp client which does not accept a password on the commandline (for security reasons, commandlines appear in the&amp;nbsp;&lt;STRONG&gt;publi&lt;/STRONG&gt;&lt;STRONG&gt;c&lt;/STRONG&gt; process list), you cannot specify a password at all.&lt;/P&gt;
&lt;P&gt;FILENAME FTP allows this because the whole FTP code is integrated within SAS.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 06:08:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-establish-a-connection-to-an-sFTP-server/m-p/933642#M367186</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2024-06-25T06:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to establish a connection to an sFTP server?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-establish-a-connection-to-an-sFTP-server/m-p/933643#M367187</link>
      <description>&lt;P&gt;Those NOTEs are part of the documentation of&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lestmtsglobal/p0xln1fiwsr340n1xxf4mkmfxp6f.htm" target="_blank" rel="noopener"&gt;FILENAME Statement: SFTP Access Method&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 06:21:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-establish-a-connection-to-an-sFTP-server/m-p/933643#M367187</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2024-06-25T06:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to establish a connection to an sFTP server?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-establish-a-connection-to-an-sFTP-server/m-p/933645#M367189</link>
      <description>These notes are on the page you mentioned. Validating the credentials is not enough, you need ssh.</description>
      <pubDate>Tue, 25 Jun 2024 06:54:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-establish-a-connection-to-an-sFTP-server/m-p/933645#M367189</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2024-06-25T06:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to establish a connection to an sFTP server?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-establish-a-connection-to-an-sFTP-server/m-p/933648#M367190</link>
      <description>&lt;P&gt;The &lt;STRONG&gt;-&lt;/STRONG&gt;pw (note the dash) option in example 6 specifies a pass phrase needed to open the .ppk file containing the private key. It is an option internal to WinSCP, and has nothing to do with an sftp password used to log on to a server.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 07:02:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-establish-a-connection-to-an-sFTP-server/m-p/933648#M367190</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2024-06-25T07:02:05Z</dc:date>
    </item>
  </channel>
</rss>

