ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Cannot clone a package from github (publickey)

asked 2022-10-11 12:45:24 -0500

akumar3.1428 gravatar image

updated 2022-10-30 09:37:02 -0500

lucasw gravatar image

I want to do eye-to-hand using the following package , however when I am cloning the git repository I am getting this error

git clone
Cloning into 'moveit_calibration'... Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2022-10-11 15:12:37 -0500

akumar3.1428 gravatar image

Thank you ! I followed the following commands to add public ssh key to my github

cd ~/.ssh
ssh-keygen -t rsa -b 4096 -C "your email id "
eval $(ssh-agent -s)

Open VS Code and copy ssh

cd ~/.ssh
code .

login into github 
go to setting 
go to ssh and gp keys
add new key 
paste it
edit flag offensive delete link more

answered 2022-10-11 14:51:36 -0500

AndyZe gravatar image

You either need to set up an ssh key with Github, or clone it with https like this (which just requires a username and password):

git clone
edit flag offensive delete link more

Question Tools

1 follower


Asked: 2022-10-11 12:45:24 -0500

Seen: 102 times

Last updated: Oct 11 '22