qiufanzheng@qiufanzheng-SJB6:~/rk356x_linux$ repo init --repo-url=git@ashrdgit.sh.ieinet.org:vendor/google/aosp/git-repo.git -u git@ashrdgit.sh.ieinet.org:linux/project/rockchips/manifests.git -m rk356x_linux_release.xml
Get git@ashrdgit.sh.ieinet.org:vendor/google/aosp/git-repo.git
remote:
remote: ========================================================================
remote:
remote: The project you were looking for could not be found or you don't have permission to view it.
remote:
remote: ========================================================================
remote:
fatal: Could not read from remote repository.Please make sure you have the correct access rights
and the repository exists.
查看连接的服务器:ssh git@ashrdgit.sh.ieinet.org
qiufanzheng@qiufanzheng-SJB6:~/rk356x_linux$ ssh git@ashrdgit.sh.ieinet.org
PTY allocation request failed on channel 0
Welcome to GitLab, @qiufanzheng!
Connection to ashrdgit.sh.ieinet.org closed.
查看ssh中的详细内容:
qiufanzheng@qiufanzheng-SJB6:~/rk356x_linux$ ls -la ~/.ssh/
total 24
drwx------ 2 qiufanzheng qiufanzheng 4096 Jul 26 13:33 .
drwxr-xr-x 34 qiufanzheng qiufanzheng 4096 Jul 26 14:09 ..
-rw------- 1 qiufanzheng qiufanzheng 1675 Jul 22 11:42 id_rsa
-rw-r--r-- 1 qiufanzheng qiufanzheng 409 Jul 22 11:42 id_rsa.pub
-rw-r--r-- 1 qiufanzheng qiufanzheng 1554 Jul 22 17:40 known_hosts
-r-------- 1 qiufanzheng qiufanzheng 1680 Jul 26 11:40 sdk_get
解决方法一:打开浏览器直接删除ssh公钥即可,如图所示:
解决方法二:移走~/.ssh 中的公私钥,或者删除即可。
qiufanzheng@qiufanzheng-SJB6:~/rk356x_linux$ mv ~/.ssh/id_rsa ~
qiufanzheng@qiufanzheng-SJB6:~/rk356x_linux$ ssh git@ashrdgit.sh.ieinet.org
PTY allocation request failed on channel 0
Welcome to GitLab, @qiufanzheng!
Connection to ashrdgit.sh.ieinet.org closed.
第二次拉去代码时报如下错误:
根据百度找到了解决方案:
在命令行输入:
ssh-agent bash
输入此命令没有反馈任何内容:
之后重新输入命令,问题解决
其中:sdk_get 是拉去代码的公钥。