ROS wstool-----无法从github下载源码解决
来源:互联网 发布:实用新型专利 软件 编辑:程序博客网 时间:2024/05/18 00:22
学习《Learning ROS for Robotics Programming - Second Edition》 时候从github下载源码报如下错误,后来发现是SSH key没有配置导致的问题。
wstool up -j8
error log如下:
[ros_book] Fetching git@github.com:AaronMR/Learning_ROS_for_Robotics_Programming_2nd_edition.git (version None) to /home/dev/lrrp_2nd_ws/src/ros_book
Cloning into '/home/dev/lrrp_2nd_ws/src/ros_book'...
The authenticity of host 'github.com (192.30.253.113)' can't be established.
RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'github.com,192.30.253.113' (RSA) to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Exception caught during install: Error processing 'ros_book' : [ros_book] Checkout of git@github.com:AaronMR/Learning_ROS_for_Robotics_Programming_2nd_edition.git version None into /home/dev/lrrp_2nd_ws/src/ros_book failed.
ERROR in config: Error processing 'ros_book' : [ros_book] Checkout of git@github.com:AaronMR/Learning_ROS_for_Robotics_Programming_2nd_edition.git version None into /home/dev/lrrp_2nd_ws/src/ros_book failed.
配置SSH key大致过程如下:
1)Check that you are connecting to the correct server
ssh -vT git@github.comOpenSSH_5.6p1, OpenSSL 0.9.8r 8 Feb 2011debug1: Reading configuration data /Users/you/.ssh/configdebug1: Reading configuration data /etc/ssh_configdebug1: Applying options for *debug1: Connecting to github.com [192.30.252.131] port 22.
如果输出如下“-1”,表示找不到文件,
ssh -vT git@github.com...debug1: identity file /Users/you/.ssh/id_rsa type -1debug1: identity file /Users/you/.ssh/id_rsa-cert type -1debug1: identity file /Users/you/.ssh/id_dsa type -1debug1: identity file /Users/you/.ssh/id_dsa-cert type -1...debug1: Authentications that can continue: publickeydebug1: Next authentication method: publickeydebug1: Trying private key: /Users/you/.ssh/id_rsadebug1: Trying private key: /Users/you/.ssh/id_dsadebug1: No more authentication methods to try.Permission denied (publickey).
如果没有那么创建新的SSH key即可。
2)Generating a new SSH key
Open Terminal.
Paste the text below, substituting in your GitHub email address.
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
This creates a new ssh key, using the provided email as a label.
Generating public/private rsa key pair.
When you're prompted to "Enter a file in which to save the key," press Enter. This accepts the default file location.
Enter a file in which to save the key (/Users/you/.ssh/id_rsa): [Press enter]
At the prompt, type a secure passphrase. For more information, see "Working with SSH key passphrases".
Enter passphrase (empty for no passphrase): [Type a passphrase]Enter same passphrase again: [Type passphrase again]
3)Adding your SSH key to the ssh-agent
Ensure ssh-agent is enabled:
# start the ssh-agent in the backgroundeval "$(ssh-agent -s)"Agent pid 59566
Add your SSH key to the ssh-agent. If you used an existing SSH key rather thangenerating a new SSH key, you'll need to replace id_rsa in the command with the name of your existing private key file.
$ ssh-add ~/.ssh/id_rsa
Copy the SSH key to your clipboard.
If your SSH key file has a different name than the example code, modify the filename to match your current setup. When copying your key, don't add any newlines or whitespace.
$ sudo apt-get install xclip# Downloads and installs xclip. If you don't have `apt-get`, you might need to use another installer (like `yum`)$ xclip -sel clip < ~/.ssh/id_rsa.pub# Copies the contents of the id_rsa.pub file to your clipboard
Tip: If
xclip
isn't working, you can locate the hidden.ssh
folder, open the file in your favorite text editor, and copy it to your clipboard.In the top right corner of any page, click your profile photo, then clickSettings.
In the user settings sidebar, clickSSH and GPG keys.
ClickNew SSH key or Add SSH key.
- In the "Title" field, add a descriptive label for the new key. For example, if you're using a personal Mac, you might call this key "Personal MacBook Air".
- Paste your key into the "Key" field.
- ClickAdd SSH key.
- If prompted, confirm your GitHub password.
- ROS wstool-----无法从github下载源码解决
- WSTOOL中止下载后的错误。{ROS}
- 从github下载最新Android源码
- 从github下载最新Android源码
- 使用TortoiseGit从github上下载源码
- 用Git从GitHub上下载源码
- 从github下载最新Android源码
- 从github下载最新Android源码
- 用Git从GitHub上下载源码
- 解决从github下载web的源码部署到eclipse的问题
- 关于从gethub下载的源码在Roboware显示无法打开工作空间的解决
- Spring 源码下载---从github导入源码到idea
- 从github下载项目无法在本地Android Stduio运行
- 从github下载的源码,用什么软件打开?
- 如何将从github下载下来的源码引进myeclipse
- 从GitHub下载最新的Android support拓展包源码
- Android Studio导入从Github下载的源码
- opendaylight:开发 1:Windows版本,从github下载控制器源码
- 前端面试题整理汇总
- poj3694 LCA+并查集+tarjan求割边
- C语言 猜数字游戏
- 单一职能原则
- 让CSDN下雪!快圣诞节了,分享一个h5实现的下雪效果
- ROS wstool-----无法从github下载源码解决
- 爬楼梯
- 3分钟让你明白JSON是什么
- 类和类之间的关系
- tomcat 2-- 关于一些部署启动问题和403问题的查询记录
- RTC时间在LCD上显示需注意的问题
- eclipse安装adt插件后工具栏不显示android相关图标
- iOS 开发 Quartz 2D+ UIBezierPath绘图大全详解
- 在Linux中如何利用backtrace信息解决问题