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

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 https://ros-planning.github.io/moveit... , however when I am cloning the git repository I am getting this error

git clone git@github.com:ros-planning/moveit_calibration.git
Cloning into 'moveit_calibration'...
git@github.com: 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
0

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)
ssh-add

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
1

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 https://github.com/ros-planning/moveit_calibration.git
edit flag offensive delete link more

Question Tools

1 follower

Stats

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

Seen: 422 times

Last updated: Oct 11 '22