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?
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.
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.
Nearly 200 sessions are now available on demand with the SAS Innovate Digital Pass.
Explore Now →Get started using SAS Studio to write, run and debug your SAS programs.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.