<?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 Connection Refused in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SFTP-Connection-Refused/m-p/802706#M40416</link>
    <description>&lt;P&gt;Depending on which software you have installed, this can help:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.krystal.uk/cpanel-advanced-topics/how-to-use-public-private-keys-for-ssh-and-sftp-windows" target="_blank" rel="noopener"&gt;https://help.krystal.uk/cpanel-advanced-topics/how-to-use-public-private-keys-for-ssh-and-sftp-windows&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You create a public/private keypair, install the public key in your .ssh subdirectory on the server, and the private key in your Windows client. The goal is to only supply the username and host to log in to the server from the commandline.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your server/network admins should be able to assist you.&lt;/P&gt;</description>
    <pubDate>Thu, 17 Mar 2022 21:00:00 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2022-03-17T21:00:00Z</dc:date>
    <item>
      <title>SFTP Connection Refused</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SFTP-Connection-Refused/m-p/802495#M40412</link>
      <description>&lt;P&gt;We recently set up SFTP share for our team and tested the connection using windows PowerShell and it works properly (we can transfer the file). However, when we want to do SFTP sharing via SAS, it fails. Following is the code we use:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;filename outfile sftp 'Transactions.csv' 
CD ='\\.....\folder\Transactions.csv' 
host="corpsftp.xxxxxx.com" 
user="xxxxxx"  
optionsx='-pw "xxxxx"'
DEBUG  ;

PROC EXPORT Data = TRAN_Final /* This is the dataset name */ 
OUTFILE= outfile 
DBMS=csv 
REPLACE;
Run;&lt;/PRE&gt;
&lt;P&gt;However, we get the following error:&lt;/P&gt;
&lt;P&gt;"&lt;FONT color="#FF0000"&gt;Connection refused, check key authentication and sshd server status.&lt;/FONT&gt;"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since we are sure that connection works properly, can you please advise what causes this error to happen? Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 14:46:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SFTP-Connection-Refused/m-p/802495#M40412</guid>
      <dc:creator>sun538</dc:creator>
      <dc:date>2022-03-16T14:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP Connection Refused</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SFTP-Connection-Refused/m-p/802497#M40413</link>
      <description>&lt;P&gt;You cannot supply a password to sftp via commandline (for security reasons). You must set up passwordless authentication with public/private keypairs first.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 14:56:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SFTP-Connection-Refused/m-p/802497#M40413</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-03-16T14:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP Connection Refused</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SFTP-Connection-Refused/m-p/802670#M40414</link>
      <description>&lt;P&gt;Hi, Thank you for your response. Can you please advise where this private/public key should be created?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2022 17:52:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SFTP-Connection-Refused/m-p/802670#M40414</guid>
      <dc:creator>sun538</dc:creator>
      <dc:date>2022-03-17T17:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP Connection Refused</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SFTP-Connection-Refused/m-p/802706#M40416</link>
      <description>&lt;P&gt;Depending on which software you have installed, this can help:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.krystal.uk/cpanel-advanced-topics/how-to-use-public-private-keys-for-ssh-and-sftp-windows" target="_blank" rel="noopener"&gt;https://help.krystal.uk/cpanel-advanced-topics/how-to-use-public-private-keys-for-ssh-and-sftp-windows&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You create a public/private keypair, install the public key in your .ssh subdirectory on the server, and the private key in your Windows client. The goal is to only supply the username and host to log in to the server from the commandline.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your server/network admins should be able to assist you.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2022 21:00:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SFTP-Connection-Refused/m-p/802706#M40416</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-03-17T21:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP Connection Refused</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SFTP-Connection-Refused/m-p/802979#M40424</link>
      <description>&lt;P&gt;Hello&lt;BR /&gt;The error is an indicator of an invalid key or sshd daemon not running on the server.&lt;BR /&gt;Please make sure that the same approach is being used in SAS as that in the Powershell script i.e. username/password OR private/Public key for authentication.&lt;BR /&gt;The following is an helpful SAS document, please do read if you have not done already.&lt;BR /&gt;&lt;A href="https://support.sas.com/content/dam/SAS/support/en/technical-papers/configuring-ssh-client-software.pdf" target="_blank"&gt;https://support.sas.com/content/dam/SAS/support/en/technical-papers/configuring-ssh-client-software.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Mar 2022 14:11:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SFTP-Connection-Refused/m-p/802979#M40424</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2022-03-20T14:11:25Z</dc:date>
    </item>
  </channel>
</rss>

