在Ubuntu 上使用git
来源:互联网 发布:国家顶级域名us 编辑:程序博客网 时间:2024/05/16 09:15
现象:
ylj@ylj-VirtualBox:~/workspace$ eval "$(ssh-agent -s)"Agent pid 19124ylj@ylj-VirtualBox:~/workspace$ ssh-add@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ WARNING: UNPROTECTED PRIVATE KEY FILE! @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@Permissions 0777 for '/home/ylj/.ssh/id_rsa' are too open.It is required that your private key files are NOT accessible by others.This private key will be ignored.
原因:
ssh key 权限不够
方法:
chmod 600 ~/.ssh/id_rsa
千万不要用:
chmod 777 ~/.ssh/id_rsa
为什么777不行,具体是什么原因还不是很明白。如果谁知道可以留言给我
现象二
Cloning into 'nex2'...Agent admitted failure to sign using the key.
原因:
公钥没有加入 ~/.ssh/authorized_keys 当中
解决办法:
<pre name="code" class="html">#eval "$(ssh-agent -s)"#ssh-add ~/.ssh/id_rsa
注意 ssh-add 后面的路径需要根据自己设定的路径进行改变
0 0
- 在Ubuntu 上使用git
- 在ubuntu上使用git
- Ubuntu 上使用Git
- git和github在ubuntu上的使用
- [ubuntu] ubuntu 16.04 上使用 git 工具
- 在ubuntu上搭建git-server及android studio使用git
- ZZ 如何在Ubuntu上安装GIT
- 在Ubuntu(Debian)上安装最新版Git
- 在Ubuntu上搭建git+gitolite server
- 在Ubuntu上创建Git Server
- 在Ubuntu 12.04 上 搭建 Git服务器
- 在Ubuntu 14.10上配置git server
- 在Ubuntu(Debian)上安装最新版Git
- 在Ubuntu上搭建Git server
- Git 服务器在Ubuntu 12.04上的搭建与使用体验
- 在Ubuntu上使用Bochs
- 在ubuntu上使用FTP
- 在Ubuntu上使用amule
- mysql_real_escape_string返回false记录补充
- 大型网站架构不得不考虑的10个问题
- log4j 分类输出配置
- sql注入原理及防范
- 第七章 查找技术
- 在Ubuntu 上使用git
- hadoop运行WordCount程序
- 重载RibbonButton,可以动态更改图标。
- 统计代码的行数 c实现
- 利用对象的Class辅助实现对多态容器中元素的查找
- 黑马程序员——多线程
- 暑期大作战第四天
- searchcode 代码搜索引擎及使用
- 设计模式之MVC模式