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.
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.
Ready to level-up your skills? Choose your own adventure.