<?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 - JSchException: Algorithm negotiation fail in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/sftp-jschexception-algorithm-negotiation-fail/m-p/43879#M27567</link>
    <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/87748"&gt;@MonishKumar&lt;/a&gt;&amp;nbsp;Could you provide the entire exception ?&lt;/P&gt;&lt;P&gt;From the one line error message, I suspect this is due to the SSL cipher suites required by the SFTP server is not available on cluster.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;You can run below to get the cipher suites that sftp required:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;%sh
sudo apt-get -y install nmap
nmap --script ssl-enum-ciphers -p 22 20.118.190.31&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Sep 2023 21:56:40 GMT</pubDate>
    <dc:creator>User16752239289</dc:creator>
    <dc:date>2023-09-06T21:56:40Z</dc:date>
    <item>
      <title>SFTP - JSchException: Algorithm negotiation fail</title>
      <link>https://community.databricks.com/t5/data-engineering/sftp-jschexception-algorithm-negotiation-fail/m-p/42865#M27437</link>
      <description>&lt;P&gt;When I tried to read the SFTP (CSV file) in Databricks I'm getting the below error&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"JSchException: Algorithm negotiation fail"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Code:&lt;BR /&gt;&lt;/STRONG&gt;var df = spark.read&lt;BR /&gt;.options(Map("header"-&amp;gt;"true",&lt;BR /&gt;"host"-&amp;gt;"20.118.190.30",&lt;BR /&gt;"username"-&amp;gt;"user",&lt;BR /&gt;"password"-&amp;gt;"pass",&lt;BR /&gt;"fileFormat"-&amp;gt;"csv",&lt;BR /&gt;"dfsTempPath"-&amp;gt; "/ftp/tmp/",&lt;BR /&gt;"sep"-&amp;gt;",",&lt;BR /&gt;"treatEmptyValuesAsNulls"-&amp;gt;"false")).sftp("/home/user/sftp_test/sample_csv.csv");&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Databricks Version:&lt;/STRONG&gt; 12.2 LTS&lt;BR /&gt;&lt;STRONG&gt;Apache Spark :&lt;/STRONG&gt; 3.3.2&lt;BR /&gt;&lt;STRONG&gt;Scala&amp;nbsp; :&lt;/STRONG&gt; 2.12&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Library installed:&lt;/STRONG&gt;&lt;BR /&gt;com.github.arcizon:spark-filetransfer_2.12:0.3.0&lt;BR /&gt;com.jcraft:jsch:0.1.55&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2023 12:25:48 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/sftp-jschexception-algorithm-negotiation-fail/m-p/42865#M27437</guid>
      <dc:creator>MonishKumar</dc:creator>
      <dc:date>2023-08-30T12:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP - JSchException: Algorithm negotiation fail</title>
      <link>https://community.databricks.com/t5/data-engineering/sftp-jschexception-algorithm-negotiation-fail/m-p/43879#M27567</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/87748"&gt;@MonishKumar&lt;/a&gt;&amp;nbsp;Could you provide the entire exception ?&lt;/P&gt;&lt;P&gt;From the one line error message, I suspect this is due to the SSL cipher suites required by the SFTP server is not available on cluster.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;You can run below to get the cipher suites that sftp required:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;%sh
sudo apt-get -y install nmap
nmap --script ssl-enum-ciphers -p 22 20.118.190.31&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2023 21:56:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/sftp-jschexception-algorithm-negotiation-fail/m-p/43879#M27567</guid>
      <dc:creator>User16752239289</dc:creator>
      <dc:date>2023-09-06T21:56:40Z</dc:date>
    </item>
  </channel>
</rss>

