Member since
10-20-2023
7
Posts
0
Kudos Received
1
Solution
My Accepted Solutions
Title | Views | Posted |
---|---|---|
2466 | 11-02-2023 04:17 AM |
11-02-2023
04:17 AM
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 more
10-31-2023
05:12 AM
I am in the office now rather than working remotely via VPN and it has worked ok. 😃 I will try again at home later and see if the VPN was causing an issue.
... View more
10-31-2023
05:05 AM
My Mac logon, home dir and the username at the end of the SSH public key is as follows: a1234567 But in CDSW the username is: A1234567 I didn't know if this would cause a conflict? I have tried both A1234567 and a1234567 in the login statement.
... View more
10-31-2023
02:30 AM
Hi @Mike , Thank you for the reply. I have already trusted the the cdswctl application. I can't see much difference between my command and yours? The error i am getting is related to the API key. If i remove the API key it prompts me for a password but then fails as we used SSO.
... View more
10-27-2023
04:36 AM
Hi - i am still facing a blocker on this. Can anyone offer any advice? A colleague with a Mac has also tried and they get the same error: Failed to authenticate for user <my user name> using provided API key. Could it be due to case of the usernames? In CDSW my username is uppercase and on my mac it is lower case? I have tried putting my username in the login statement matching the case of my CDSW user.
... View more
10-20-2023
11:53 AM
Hi Krishna We have done this by pushing commands out to the shell after setting up a trusted SSH connection between CDSW and the Unix server. This is the python function we use: user_name = "username"
unix_server = "my.unix.host"
unix_path = "/some/path"
file_to_transfer = "my_csv_file.csv"
def scp_file_to_sas(local_path, file_name, user_name, unix_server, unix_path):
p = subprocess.Popen(
[
"scp",
"-v",
local_path + file_name,
user_name + "@" + unix_server + ":/" + unix_path + "/" + file_name,
]
)
sts = os.waitpid(p.pid, 0)
... View more
10-20-2023
11:39 AM
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
... View more
Labels: