Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

CDSW CLI - login failed to authenticate on MacOS

avatar

Hi,

I have been using the cdswctl tool for a while for creating sessions that can be accessed by VS Code from Windows.

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.   I have checked the key and same key works fine from Windows.

The command i am using is :

./cdswctl login -n USERNAME -u http://cdsw.mydomain.xxxx/ -y APIKEY

Can anyone offer any advice?

Thanks

1 ACCEPTED SOLUTION

avatar

So - it is related to proxy/dns settings when on RAS.

Adding a lookup to etc/hosts from the IP address to the Host name has fixed my issue:

e.g.

# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost

192.99.90.1 cdsw.XXXXXX.xxxx

View solution in original post

11 REPLIES 11

avatar

So - it is related to proxy/dns settings when on RAS.

Adding a lookup to etc/hosts from the IP address to the Host name has fixed my issue:

e.g.

# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost

192.99.90.1 cdsw.XXXXXX.xxxx

avatar
Contributor

Hmm, that makes sense I suppose. That was my next guess 😉 Glad you figured it out, and thanks for posting the answer here, I appreciate it!