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.

Catch up on SAS Innovate 2026

Nearly 200 sessions are now available on demand with the SAS Innovate Digital Pass.

Explore Now →
Develop Code with SAS Studio

Get started using SAS Studio to write, run and debug your SAS programs.

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