安装repo失败,输密码后一直提示Permission denied
-
在Ubuntu环境安装repo,添加了ssh key之后执行git clone ssh://haoxuan.cui@sdk.allwinnertech.com/git_repo/repo.git后会跳出输密码页面。
“SDK下载常见问题及解决方案”中的方式已全部试过,发现添加key失败,请问一下该如何解决? -
@haoxuan-cui 在 安装repo失败,输密码后一直提示Permission denied 中说:
haoxuan.cui
haoxuan.cui
haoxuancui
到底是有点, 还是没点呢?
-
此回复已被删除! -
@whycan 是有点的。这里截图截成输错用户名的那张图了,见谅
-
是否能找到
~/.ssh/config
文件, 文件里面是否有类似的配置:
Host sdk.allwinnertech.com IdentityFile ~/.ssh/sdk.allwinnertech.com.private User whycan
此文件是否只是本人可读:
$ ls -l ~/.ssh/sdk.allwinnertech.com.private -rw------- 1 cube cube 1831 Apr 26 21:46 /home/whycan/.ssh/sdk.allwinnertech.com.private
-
@whycan ~/.ssh/目录下没有这两个文件,是否需要自己创建呢?
-
需要的, 你网上找一下ssh 私钥的部署文章.
https://zj-linux-guide.readthedocs.io/zh_CN/stable/ssh/[Ubuntu 16.04][SSH]添加私钥缓存.html
-
-
@whycan 我配置了一下~/.ssh/config,指定了ssh key的文件,也用过ssh-add添加了该密钥,但还是原来那个样子,我现在有点分不清是本地没配置好还是密钥没添加好的原因了
-
@lvguojian 谢谢,但公钥我已经生成过并粘贴到账户里了,所以现在非常迷惑
-
ssh -v haoxuan.cui@sdk.allwinnertech.com
加上 -v 选项,打印详细debug信息
-
@lvguojian 好的,下面是我的log信息,而且我发现把个人账户里添加的密钥删除后也是相同的log,是不是我的密钥添加有问题呢?
$ ssh -v haoxuan.cui@sdk.allwinnertech.com OpenSSH_8.2p1 Ubuntu-4ubuntu0.3, OpenSSL 1.1.1f 31 Mar 2020 debug1: Reading configuration data /home/haoxuan/.ssh/config debug1: /home/haoxuan/.ssh/config line 1: Applying options for * debug1: /home/haoxuan/.ssh/config line 6: Applying options for sdk.allwinnertech.com debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files debug1: /etc/ssh/ssh_config line 21: Applying options for * debug1: Connecting to sdk.allwinnertech.com [47.107.103.85] port 22. debug1: Connection established. debug1: identity file /home/haoxuan/.ssh/allwinnertech.pub type 0 debug1: identity file /home/haoxuan/.ssh/allwinnertech.pub-cert type -1 debug1: Local version string SSH-2.0-OpenSSH_8.2p1 Ubuntu-4ubuntu0.3 debug1: Remote protocol version 2.0, remote software version OpenSSH_7.4 debug1: match: OpenSSH_7.4 pat OpenSSH_7.0*,OpenSSH_7.1*,OpenSSH_7.2*,OpenSSH_7.3*,OpenSSH_7.4*,OpenSSH_7.5*,OpenSSH_7.6*,OpenSSH_7.7* compat 0x04000002 debug1: Authenticating to sdk.allwinnertech.com:22 as 'haoxuan.cui' debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: algorithm: curve25519-sha256 debug1: kex: host key algorithm: ecdsa-sha2-nistp256 debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none debug1: expecting SSH2_MSG_KEX_ECDH_REPLY debug1: Server host key: ecdsa-sha2-nistp256 SHA256:4/KSpPDtBnMDCx6aIqGWqTZqGG68yfZql5n3mI7zEqk debug1: Host 'sdk.allwinnertech.com' is known and matches the ECDSA host key. debug1: Found key in /home/haoxuan/.ssh/known_hosts:3 debug1: rekey out after 134217728 blocks debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: rekey in after 134217728 blocks debug1: Will attempt key: /home/haoxuan/.ssh/allwinnertech.pub RSA SHA256:P8srB+DuY+CAQfN2kl7egPYfg0plTmB6CnkxBo5NNJY explicit agent debug1: SSH2_MSG_EXT_INFO received debug1: kex_input_ext_info: server-sig-algs=<rsa-sha2-256,rsa-sha2-512> debug1: SSH2_MSG_SERVICE_ACCEPT received debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password debug1: Next authentication method: gssapi-with-mic debug1: Unspecified GSS failure. Minor code may provide more information No Kerberos credentials available (default cache: FILE:/tmp/krb5cc_1003) debug1: Unspecified GSS failure. Minor code may provide more information No Kerberos credentials available (default cache: FILE:/tmp/krb5cc_1003) debug1: Next authentication method: publickey debug1: Offering public key: /home/haoxuan/.ssh/allwinnertech.pub RSA SHA256:P8srB+DuY+CAQfN2kl7egPYfg0plTmB6CnkxBo5NNJY explicit agent debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password debug1: Next authentication method: password haoxuan.cui@sdk.allwinnertech.com's password:
-
可能是服务器端的问题,麻烦您十五分钟后再试一下
-
@lvguojian 现在可以连接并下载了,非常感谢!但是下一步repo init的时候又报了这样的错误,您知道是怎么回事吗?
-
把这个文件传上来看看,
另外您的python版本是多少? -
@lvguojian python装有2.7跟3.8的,我使用的是3.8版本。然后我发现只要在repo前面加python3就可以顺利执行命令了,请问这样子执行的repo init与repo sync会有影响吗?
-
您电脑之前是不是有安装过其它版本的repo,执行 cat $(which repo) | head -n 40 看一下,下载全志的sdk请使用全志定制的repo:
http://open.allwinnertech.com/guide/yht2/chan_pin_bao_xia_zai/zi_yuan_ku/23001_an_zhuang_repo_yin_dao_jiao_ben.html -
@lvguojian 我就是按照文档下载的repo,这是我输入上述命令后得到的信息,您看看有没有什么问题
-
@lvguojian 另外我在make -j32进行编译时还收到了以下报错,请问跟之前的repo操作有关吗?
-
@haoxuan-cui 在 安装repo失败,输密码后一直提示Permission denied 中说:
@lvguojian 现在可以连接并下载了,非常感谢!但是下一步repo init的时候又报了这样的错误,您知道是怎么回事吗?
看了您的截图,repo安装是没问题了,这里报语法错误应该默认的python版太低了,在repo前面加python3执行也是可以的,如果后续还遇到和python版本相关的问题,建议将您的python默认版本设置为 python 3,避免不必要的麻烦
-
看样子和repo没关系,repo sync 过程中没有报错中断,则表明代码已经下载成功,在D1版块新建个帖子跟踪这个问题吧
-
@lvguojian 好的,感谢您的耐心解答~
-
这个问题我也遇见了,解决办法如下:
到全志官方重新注册个账号,用新的账号下载就好了。
回顾了下过程,我觉得是全志的账号和SDK的账号不同步导致。
我在web登录全志账号时,因为忘记了密码,所以重置了下,然后SDK哪里密码怎么输入都不对。所以SDK里的密码应该还是我之前忘记的那个密码。
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号