<?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>question Re: CDSW CLI  - login failed to authenticate on MacOS in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/CDSW-CLI-login-failed-to-authenticate-on-MacOS/m-p/378481#M243551</link>
    <description>&lt;P&gt;Hmm, that makes sense I suppose. That was my next guess &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; Glad you figured it out, and thanks for posting the answer here, I appreciate it!&lt;/P&gt;</description>
    <pubDate>Thu, 02 Nov 2023 15:37:30 GMT</pubDate>
    <dc:creator>Mike</dc:creator>
    <dc:date>2023-11-02T15:37:30Z</dc:date>
    <item>
      <title>CDSW CLI  - login failed to authenticate on MacOS</title>
      <link>https://community.cloudera.com/t5/Support-Questions/CDSW-CLI-login-failed-to-authenticate-on-MacOS/m-p/377994#M243386</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have been using the cdswctl tool for a while for creating sessions that can be accessed by VS Code from Windows.&lt;/P&gt;&lt;P&gt;Today i tried to create a session from a Mac using the same command and it throws an error complaining that the API key is not valid.&amp;nbsp; &amp;nbsp;I have checked the key and same key works fine from Windows.&lt;/P&gt;&lt;P&gt;The command i am using is :&lt;/P&gt;&lt;P&gt;./cdswctl login -n USERNAME -u &lt;A href="http://cdsw.mydomain.xxxx/" target="_blank" rel="noopener"&gt;http://cdsw.mydomain.xxxx/&lt;/A&gt; -y APIKEY&lt;/P&gt;&lt;P&gt;Can anyone offer any advice?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2023 18:39:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/CDSW-CLI-login-failed-to-authenticate-on-MacOS/m-p/377994#M243386</guid>
      <dc:creator>BubbaBoBobBrain</dc:creator>
      <dc:date>2023-10-20T18:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: CDSW CLI  - login failed to authenticate on MacOS</title>
      <link>https://community.cloudera.com/t5/Support-Questions/CDSW-CLI-login-failed-to-authenticate-on-MacOS/m-p/378003#M243392</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/107503"&gt;@BubbaBoBobBrain&lt;/a&gt;&amp;nbsp;Welcome to the Cloudera Community!&lt;BR /&gt;&lt;BR /&gt;To help you get the best possible solution, I have tagged our CDSW experts&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/28743"&gt;@Gopinath&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/25179"&gt;@Mike&lt;/a&gt;&amp;nbsp; who may be able to assist you further.&lt;BR /&gt;&lt;BR /&gt;Please keep us updated on your post, and we hope you find a satisfactory solution to your query.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2023 22:02:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/CDSW-CLI-login-failed-to-authenticate-on-MacOS/m-p/378003#M243392</guid>
      <dc:creator>DianaTorres</dc:creator>
      <dc:date>2023-10-20T22:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: CDSW CLI  - login failed to authenticate on MacOS</title>
      <link>https://community.cloudera.com/t5/Support-Questions/CDSW-CLI-login-failed-to-authenticate-on-MacOS/m-p/378221#M243464</link>
      <description>&lt;P&gt;Hi - i a&lt;EM&gt;m still facing a blocker on this.&amp;nbsp; Can anyone offer any advice?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;A colleague with a Mac has also tried and they get the same error:&lt;/EM&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;SPAN class="s1"&gt;Failed to authenticate for user &amp;lt;my user name&amp;gt; using provided API key.&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Could it be due to case of the usernames?&amp;nbsp; In CDSW my username is uppercase and on my mac it is lower case?&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;I have tried putting my username in the login statement matching the case of my CDSW user.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Oct 2023 11:36:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/CDSW-CLI-login-failed-to-authenticate-on-MacOS/m-p/378221#M243464</guid>
      <dc:creator>BubbaBoBobBrain</dc:creator>
      <dc:date>2023-10-27T11:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: CDSW CLI  - login failed to authenticate on MacOS</title>
      <link>https://community.cloudera.com/t5/Support-Questions/CDSW-CLI-login-failed-to-authenticate-on-MacOS/m-p/378235#M243473</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35149"&gt;@Scharan&lt;/a&gt;&amp;nbsp;Any insights here? Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 27 Oct 2023 16:11:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/CDSW-CLI-login-failed-to-authenticate-on-MacOS/m-p/378235#M243473</guid>
      <dc:creator>DianaTorres</dc:creator>
      <dc:date>2023-10-27T16:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: CDSW CLI  - login failed to authenticate on MacOS</title>
      <link>https://community.cloudera.com/t5/Support-Questions/CDSW-CLI-login-failed-to-authenticate-on-MacOS/m-p/378286#M243495</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/107503"&gt;@BubbaBoBobBrain&lt;/a&gt; , you need to include the workspace in your login command, see this page: &lt;A href="https://docs.cloudera.com/cdsw/1.10.3/cli-reference/topics/cdsw-login-cdswctl.html" target="_blank"&gt;https://docs.cloudera.com/cdsw/1.10.3/cli-reference/topics/cdsw-login-cdswctl.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;This command worked fine for me:&lt;BR /&gt;./cdswctl login -u &lt;A href="https://mikes-cdsw.cloudera.com" target="_blank"&gt;https://mikes-cdsw.cloudera.com&lt;/A&gt;&amp;nbsp; -n mike -y u8ryf6a2977rfsr8zajesand2jhwoa44&lt;BR /&gt;&lt;BR /&gt;Btw on Mac you usually need to first right click on the cdswcli icon and select "Open" - this will let you open the tool once which lets your mac system trust the application, which it won't do by default since it was downloaded from the internet. After this you can use it as normal.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 13:47:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/CDSW-CLI-login-failed-to-authenticate-on-MacOS/m-p/378286#M243495</guid>
      <dc:creator>Mike</dc:creator>
      <dc:date>2023-10-30T13:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: CDSW CLI  - login failed to authenticate on MacOS</title>
      <link>https://community.cloudera.com/t5/Support-Questions/CDSW-CLI-login-failed-to-authenticate-on-MacOS/m-p/378349#M243510</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/25179"&gt;@Mike&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thank you for the reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have already trusted the the cdswctl application.&lt;/P&gt;&lt;P&gt;I can't see much difference between my command and yours?&lt;/P&gt;&lt;P&gt;The error i am getting is related to the API key.&amp;nbsp; If i remove the API key it prompts me for a password but then fails as we used SSO.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 09:30:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/CDSW-CLI-login-failed-to-authenticate-on-MacOS/m-p/378349#M243510</guid>
      <dc:creator>BubbaBoBobBrain</dc:creator>
      <dc:date>2023-10-31T09:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: CDSW CLI  - login failed to authenticate on MacOS</title>
      <link>https://community.cloudera.com/t5/Support-Questions/CDSW-CLI-login-failed-to-authenticate-on-MacOS/m-p/378359#M243513</link>
      <description>&lt;P&gt;Oh weird the first time I read this I didn't see you using the server anywhere. No, the command you are using is correct.&lt;/P&gt;&lt;P&gt;Can you expand on this statement?&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&amp;gt;Could it be due to case of the usernames?&amp;nbsp; In CDSW my username is uppercase and on my mac it is lower case?&lt;BR /&gt;&lt;BR /&gt;The username you are using in the command is the CDSW username, not your mac username.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 10:58:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/CDSW-CLI-login-failed-to-authenticate-on-MacOS/m-p/378359#M243513</guid>
      <dc:creator>Mike</dc:creator>
      <dc:date>2023-10-31T10:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: CDSW CLI  - login failed to authenticate on MacOS</title>
      <link>https://community.cloudera.com/t5/Support-Questions/CDSW-CLI-login-failed-to-authenticate-on-MacOS/m-p/378372#M243516</link>
      <description>&lt;P&gt;My Mac logon, home dir and the username at the end of the SSH public key is as follows:&lt;/P&gt;&lt;P&gt;a1234567&lt;/P&gt;&lt;P&gt;But in CDSW the username is:&lt;/P&gt;&lt;P&gt;A1234567&lt;/P&gt;&lt;P&gt;I didn't know if this would cause a conflict?&amp;nbsp; I have tried both A1234567 and a1234567 in the login statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 12:05:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/CDSW-CLI-login-failed-to-authenticate-on-MacOS/m-p/378372#M243516</guid>
      <dc:creator>BubbaBoBobBrain</dc:creator>
      <dc:date>2023-10-31T12:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: CDSW CLI  - login failed to authenticate on MacOS</title>
      <link>https://community.cloudera.com/t5/Support-Questions/CDSW-CLI-login-failed-to-authenticate-on-MacOS/m-p/378373#M243517</link>
      <description>&lt;P&gt;I am in the office now rather than working remotely via VPN and it has worked ok.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I will try again at home later and see if the VPN was causing an issue.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 12:12:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/CDSW-CLI-login-failed-to-authenticate-on-MacOS/m-p/378373#M243517</guid>
      <dc:creator>BubbaBoBobBrain</dc:creator>
      <dc:date>2023-10-31T12:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: CDSW CLI  - login failed to authenticate on MacOS</title>
      <link>https://community.cloudera.com/t5/Support-Questions/CDSW-CLI-login-failed-to-authenticate-on-MacOS/m-p/378376#M243520</link>
      <description>&lt;P&gt;I would expect that you need to use A1234567 as that will be the username which matches the API key.&lt;/P&gt;&lt;P&gt;If the only thing that changed was the VPN... that must be the issue. Perhaps the VPN is blocking ssh access or rewriting some header or something? I'm pretty sure that the error about an invalid API key is not the real error - it likely cannot even get to your CML in the first place. When you get back on VPN, can you try to just cURL your server with and without VPN?&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 13:38:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/CDSW-CLI-login-failed-to-authenticate-on-MacOS/m-p/378376#M243520</guid>
      <dc:creator>Mike</dc:creator>
      <dc:date>2023-10-31T13:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: CDSW CLI  - login failed to authenticate on MacOS</title>
      <link>https://community.cloudera.com/t5/Support-Questions/CDSW-CLI-login-failed-to-authenticate-on-MacOS/m-p/378470#M243546</link>
      <description>&lt;P&gt;So - it is related to proxy/dns settings when on RAS.&lt;/P&gt;&lt;P&gt;Adding a lookup to etc/hosts from the IP address to the Host name has fixed my issue:&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;# Host Database&lt;BR /&gt;#&lt;BR /&gt;# localhost is used to configure the loopback interface&lt;BR /&gt;# when the system is booting. Do not change this entry.&lt;BR /&gt;##&lt;BR /&gt;127.0.0.1 localhost&lt;BR /&gt;255.255.255.255 broadcasthost&lt;BR /&gt;::1 localhost&lt;/P&gt;&lt;P&gt;192.99.90.1 cdsw.XXXXXX.xxxx&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2023 11:17:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/CDSW-CLI-login-failed-to-authenticate-on-MacOS/m-p/378470#M243546</guid>
      <dc:creator>BubbaBoBobBrain</dc:creator>
      <dc:date>2023-11-02T11:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: CDSW CLI  - login failed to authenticate on MacOS</title>
      <link>https://community.cloudera.com/t5/Support-Questions/CDSW-CLI-login-failed-to-authenticate-on-MacOS/m-p/378481#M243551</link>
      <description>&lt;P&gt;Hmm, that makes sense I suppose. That was my next guess &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; Glad you figured it out, and thanks for posting the answer here, I appreciate it!&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2023 15:37:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/CDSW-CLI-login-failed-to-authenticate-on-MacOS/m-p/378481#M243551</guid>
      <dc:creator>Mike</dc:creator>
      <dc:date>2023-11-02T15:37:30Z</dc:date>
    </item>
  </channel>
</rss>

