Hi,
I want to use the 'sas-viya' CLI tool with Viya 21-##-##. I've set the trusted certificate (copied from the sas-logon pod) and a valid sas user, I get 'Login failed. Bad userid or password'.
While trying the documented 'sas-viya --insecure auth login', which bypasses the TLS auth, I still can't connect.
Attached is the output I get using: sas-viya --insecure auth login --verbose
Any clues appreciated. Thx.
Thank you for the replies provided. I was able resolved the issue with the following:
sas-admin profile init
Enter: http://sasserver.demo.sas.com
*** RESET TOKEN ***
sas-admin --verbose --profile Default -k auth login
Enter <UserID>/<Password>
All is good!
Hi David,
Thank you for such a quick reply. No, I don't have URL special character, it's the very common 'Orion123'. I don't understand why we are provided with the '-k' and '--insecure' arguments to bypass TLS, but it doesn't.
Hi,
Yes thank you, I corrected the '--verbose' argument afterwards (did not update the screen shot), and still no luck.
Using '-k' (or --insecure) still ask you for the userid/password.
This is what I normally do and it always works for me
export SSL_CERT_FILE=/opt/sas/viya/config/etc/SASSecurityCertificateFramework/cacerts/trustedcerts.pem
/opt/sas/viya/home/bin/sas-admin profile set-endpoint "<url>"
/opt/sas/viya/home/bin/sas-admin profile toggle-color off
/opt/sas/viya/home/bin/sas-admin profile set-output fulljson
/opt/sas/viya/home/bin/sas-admin auth login --user '<user>' --password '<password>'
Hi,
Please read carefully, I'm using 'sas-viya' CLI tool, not 'sas-admin', which is intended for Viya 3.x, while 'sas-viya' is for Viya 21xx-xx and above.
Thank you.
TLS/SSL is not your problem. Also, @sangavis37 's commands will work if you replace sas-admin with sas-viya.
Is the endpoint URL you are going to correct? http://sasserver.demo.sas.com does not exist according to my browser.
The -k/--insecure mean that the certificate validation step is skipped.
I would suggest trying to ping the server (http://sasserver.demo.sas.com) from the command line and make sure that you get something in return.
Next try logging in using:
sas-viya -k auth login -u sas -p Orion123
Thank you for the replies provided. I was able resolved the issue with the following:
sas-admin profile init
Enter: http://sasserver.demo.sas.com
*** RESET TOKEN ***
sas-admin --verbose --profile Default -k auth login
Enter <UserID>/<Password>
All is good!
The SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment.
SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.
Find more tutorials on the SAS Users YouTube channel.