<?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: Connect to SFTP at nonstandard port in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Connect-to-SFTP-at-nonstandard-port/m-p/551155#M33462</link>
    <description>&lt;P&gt;Yes, it worked in the command line.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wrote a winscp script to do the work instead of doing it in SAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 15 Apr 2019 17:48:22 GMT</pubDate>
    <dc:creator>Lynn_SAS</dc:creator>
    <dc:date>2019-04-15T17:48:22Z</dc:date>
    <item>
      <title>Connect to SFTP at nonstandard port</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Connect-to-SFTP-at-nonstandard-port/m-p/550064#M33420</link>
      <description>&lt;P&gt;I followed the instruction here (&lt;A href="https://go.documentation.sas.com/?docsetId=lestmtsglobal&amp;amp;docsetTarget=p0xln1fiwsr340n1xxf4mkmfxp6f.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en"&gt;https://go.documentation.sas.com/?docsetId=lestmtsglobal&amp;amp;docsetTarget=p0xln1fiwsr340n1xxf4mkmfxp6f.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;) to connect to a server at Nonstandard port.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;P&gt;FILENAME rmt sftp "datafile_today.zip"&lt;BR /&gt;options="-oPort=100"&lt;BR /&gt;host='serverIP'&lt;BR /&gt;user='myuserid'&lt;BR /&gt;wait_milliseconds=100000&lt;BR /&gt;cd='/'&lt;BR /&gt;recfm=s&lt;BR /&gt;debug;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the error that I had in the Log:&lt;/P&gt;&lt;P&gt;NOTE: psftp: unknown option "-oPort=100" try typing "psftp -h" for help&lt;BR /&gt;NOTE: cd "/"&lt;BR /&gt;ERROR: Directory or file datafile_today.zip doesn't exist.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Updates:&lt;/P&gt;&lt;P&gt;After looking for possible solutions for this issue, I updated my SAS code to be as below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FILENAME rmt sftp "90391660_DigitalData_20190410.zip"&lt;BR /&gt;&lt;STRONG&gt;options="-P = 100"&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;host='&lt;EM&gt;serverIP&lt;/EM&gt;'&lt;/STRONG&gt;&lt;BR /&gt;user='&lt;EM&gt;myuserid&lt;/EM&gt;'&lt;BR /&gt;wait_milliseconds=100000&lt;BR /&gt;recfm=s&lt;BR /&gt;options="-v"&lt;BR /&gt;debug;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, SAS can't recognize the port option. From the error message in the log, SAS was trying to connect to the server at a standard port 22. See log below:&lt;/P&gt;&lt;P&gt;NOTE: Looking up host "&lt;EM&gt;ServerIP&lt;/EM&gt;" for SSH connectionConnecting to &lt;EM&gt;ServerIP&lt;/EM&gt; port &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;22&lt;/STRONG&gt;&lt;/FONT&gt; We claim version:&lt;BR /&gt;SSH-2.0-PuTTY_Release_0.71&lt;BR /&gt;NOTE: Network error: Network error: Software caused connection abortFATAL ERROR: Network error: Network error: Software caused&lt;BR /&gt;connection abort&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas are appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2019 14:51:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Connect-to-SFTP-at-nonstandard-port/m-p/550064#M33420</guid>
      <dc:creator>Lynn_SAS</dc:creator>
      <dc:date>2019-04-11T14:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to SFTP at nonstandard port</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Connect-to-SFTP-at-nonstandard-port/m-p/550816#M33444</link>
      <description>&lt;P&gt;Have you tried testing this on a command line: psftp -P=100? If it works from a command line then it will likely work in SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Failing that SAS Tech Support might be your best bet.&lt;/P&gt;</description>
      <pubDate>Sat, 13 Apr 2019 00:40:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Connect-to-SFTP-at-nonstandard-port/m-p/550816#M33444</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-04-13T00:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to SFTP at nonstandard port</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Connect-to-SFTP-at-nonstandard-port/m-p/551155#M33462</link>
      <description>&lt;P&gt;Yes, it worked in the command line.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wrote a winscp script to do the work instead of doing it in SAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2019 17:48:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Connect-to-SFTP-at-nonstandard-port/m-p/551155#M33462</guid>
      <dc:creator>Lynn_SAS</dc:creator>
      <dc:date>2019-04-15T17:48:22Z</dc:date>
    </item>
  </channel>
</rss>

