gerrit克隆,权限不够的解决方法
2017-09-26 11:03
811 查看
gerrit,还有就是git公钥的添加,其实还是很简单的,按空格键默认就好了。
1、$ ssh-keygen -t rsa
2、Generating public/private rsa key pair.
3、Enter file in which to save the key (/c/Users/qtan/msyshome/.ssh/id_rsa):
4、Created directory '/c/Users/qtan/msyshome/.ssh'.
5、Enter passphrase (empty for no passphrase):
6、Enter same passphrase again:
3,5,6我都是按的空格键,之前在 3 后面按了一个“yes”,然后在当前目录下面生成了 yes 和 yes.pub 文件,结果克隆的时候出了问题:
$ git clone ssh://qtan@shaitgrt01.cn.zmt.local:29418/zadas/zadas && scp -p -P 29418qtan@shaitgrt01.cn.zmt.local:hooks/commit-msg zadas/.git/hooks/
Cloning into 'zadas'...
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
git bash是能够在任何地方进行download代码的工具,可以说是非常方便!比如说我把服务器映射到本地的Z盘(虚拟的),但是还是可以用git bash工具把其他服务器上面的代码下载到这个虚拟的Z盘。
qtan@WIN-90GIMDOL8DG MINGW64 /z
$ git clone ssh://qtan@shaitgrt01.cn.zmt.local:29418/zadas/zadas && scp -p -P 29418
qtan@shaitgrt01.cn.zmt.local:hooks/commit-msg zadas/.git/hooks/
Cloning into 'zadas'...
1、$ ssh-keygen -t rsa
2、Generating public/private rsa key pair.
3、Enter file in which to save the key (/c/Users/qtan/msyshome/.ssh/id_rsa):
4、Created directory '/c/Users/qtan/msyshome/.ssh'.
5、Enter passphrase (empty for no passphrase):
6、Enter same passphrase again:
3,5,6我都是按的空格键,之前在 3 后面按了一个“yes”,然后在当前目录下面生成了 yes 和 yes.pub 文件,结果克隆的时候出了问题:
$ git clone ssh://qtan@shaitgrt01.cn.zmt.local:29418/zadas/zadas && scp -p -P 29418qtan@shaitgrt01.cn.zmt.local:hooks/commit-msg zadas/.git/hooks/
Cloning into 'zadas'...
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
git bash是能够在任何地方进行download代码的工具,可以说是非常方便!比如说我把服务器映射到本地的Z盘(虚拟的),但是还是可以用git bash工具把其他服务器上面的代码下载到这个虚拟的Z盘。
qtan@WIN-90GIMDOL8DG MINGW64 /z
$ git clone ssh://qtan@shaitgrt01.cn.zmt.local:29418/zadas/zadas && scp -p -P 29418
qtan@shaitgrt01.cn.zmt.local:hooks/commit-msg zadas/.git/hooks/
Cloning into 'zadas'...
相关文章推荐
- 在ubuntu下复制文件出现权限不够的解决方法
- 控制台权限MMC不能打开文件 SQL Server Enterprise Manager.MSC 或权限不够 (解决方法 )
- 计算机常识--win7 删除文件、拒绝訪问等等,所有提示权限不够 解决的方法
- 终端中执行命令时提示权限不够的解决方法
- 用户权限不够无法运行程序的解决方法
- Ubuntu16.10 下安装node.js提示./configure 权限不够的解决方法
- 用ASP.NET做项目,本本上的系统是XP,网上下载了IIS6,安装完后出现HTTP500问题,解决之.接着出现了浏览页面时跳出登陆框让输用户名及密码,GOOGLE了一下,原来是权限不够,解决方法
- ubuntu下运行android emulator权限不够解决方法
- ubuntu下运行android emulator权限不够解决方法
- Ubuntu12.04产生“-bash: /proc/sys/kernel/randomize_va_space: 权限不够”的解决方法
- 用户安全角色权限不够的解决方法
- 设置samba共享,提示权限不够问题解决方法
- su: /bin/bash: 权限不够 的解决方法
- MMC不能打开文件 SQL Server Enterprise Manager.MSC 或权限不够 (解决方法 )
- 域普通用户执行金蝶K/3权限不够解决方法
- htc在ubuntu上找不到devieces,提示权限不够的解决方法
- Microsoft VBScript 运行时错误 错误 '800a0046' 没有权限 解决方法
- 解决Windows7下PHPnow安装Apache权限不够问题
- Win7下文件访问被拒绝,需要TrustedInstaller提供的权限才能更改的解决方法
- iOS开发-iOS11获取定位权限失败的解决方法