Posit Cloud authentification

Hi everyone,

I connected to a private Github repo and I am unable to push my changes.
How do I authenticate through Rcloud? I know normal login password has been disabled. Any help would be appreciated!

T

Create a .ssh folder under your project's home folder and copy your github ssh key there, then change your "remote origin" git configuration to use the ssh login method.

I tried

/cloud/home$ mkdir -p .ssh
mkdir: cannot create directory ‘.ssh’: Permission denied

then i was going to ssh-keygen

Do you have an example of what you would do?

Maybe I'm misunderstanding your question but I was assuming you are using the Posit Cloud service. If that is the case, you are not creating the folder in the right location. If you are indeed on Posit Cloud, run the following commands on the terminal panel

cd ~
mkdir .ssh
chmod 700 .ssh

Then copy your github ssh key file to this folder and make sure it has proper permissions, for example, if your ssh key file is called id_rsa (the default file name RStudio uses), you could use this command

chmod 600 ~/.ssh/id_rsa

Then set your git remote source to use the ssh authentication with a command like this, while on your project root folder

cd /cloud/project
git remote set-url origin git@github.com:your_user_name/your_repository_name.git

Yess! Thank you so much this worked.

If your question's been answered (even by you!), would you mind choosing a solution? It helps other people see which questions still need help, or find solutions if they have similar problems. Here’s how to do it:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.