BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.

Hi there.

I am trying to clone a repository (repo) from an internal gitlab server (git.corp) using SAS StudioV 5.2 in a SAS Viya 3.5 install. 

The clone operation works fine when cloning with git client from my workstation using the same keys, but when in SAS Studio the operation fails and I can see the following log line:

 

ERROR: Failed to authenticate with the remote repository when cloning git repo

Here's the code:

 

data _null_;
    rc = gitfn_clone(
     "git@git.corp:user/repo.git",
     "/home/user/git/repo", 
     "git",
     "",
     "/home/user/keys/mysshkey.pub",
     "/home/user/keys/mysshkey");
    put rc=;
run;

 

Is there something I am missing? Are there configuration options to set on my environment?

1 ACCEPTED SOLUTION

Accepted Solutions
alisio_meneses
Quartz | Level 8

I figured it out. 

 

I had to regenerate the SSH keys using with the following command:

 

# ssh-keygen -t rsa -m PEM -b 4096 -C "email"

 

Apparently the SSH library in use seems to have issues with some SSH keygen algorithms.

 

Everything worked fine with the new key.

View solution in original post

1 REPLY 1
alisio_meneses
Quartz | Level 8

I figured it out. 

 

I had to regenerate the SSH keys using with the following command:

 

# ssh-keygen -t rsa -m PEM -b 4096 -C "email"

 

Apparently the SSH library in use seems to have issues with some SSH keygen algorithms.

 

Everything worked fine with the new key.

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

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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
  • 1 reply
  • 2099 views
  • 1 like
  • 1 in conversation