BookmarkSubscribeRSS Feed
twalla96
Calcite | Level 5

I am trying to connect to Postgres in Base SAS 9.4 for the first time using the following command:

libname pg postgres user=**** pwd=***** server="****" database=**** conopts="sslmode=require" ;

I am receiving the following error:

CLI error trying to establish connection: Service negotation failed; The client and server
cannot communicate, because they do not possess a common algorithm. in
DoSchannelNegotiation:CreateSchannelCredentials

If anyone recognizes this error, please let me know how you resolved it!

2 REPLIES 2
ballardw
Super User

I find this https://community.denodo.com/answers/question/details?questionId=9064u000000HA0PAAW&title=Setting+up...

with most of the same error text and a "solution" that points to possible TLS protocol settings as being involved.

 

May mean a call to SAS tech support is the way to go.

wormenhi
Calcite | Level 5

Did you configure the pg_hba.conf file to allow the connection from remote? If there is no specific entry with user, database and network you will not be able to connect to the PostgreSQL database at all.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 837 views
  • 0 likes
  • 3 in conversation