Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    安装repo失败,输密码后一直提示Permission denied

    代码下载问题专区
    4
    23
    808
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      haoxuan.cui LV 3 last edited by

      在Ubuntu环境安装repo,添加了ssh key之后执行git clone ssh://haoxuan.cui@sdk.allwinnertech.com/git_repo/repo.git后会跳出输密码页面。
      0897be4b-7233-4b5d-9fbf-ae5a7667257b-image.png
      38a00c0f-b73b-49e5-a915-cd7bbf5707d9-image.png
      “SDK下载常见问题及解决方案”中的方式已全部试过,发现添加key失败,请问一下该如何解决?

      1 Reply Last reply Reply Quote Share 0
      • W
        whycan晕哥 LV 9 last edited by

        @haoxuan-cui 在 安装repo失败,输密码后一直提示Permission denied 中说:

        haoxuan.cui

        haoxuan.cui

        haoxuancui

        到底是有点, 还是没点呢?

        H 1 Reply Last reply Reply Quote Share 0
        • W
          whycan晕哥 LV 9 last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote Share 0
          • H
            haoxuan.cui LV 3 @whycan last edited by

            @whycan 是有点的。这里截图截成输错用户名的那张图了,见谅

            1 Reply Last reply Reply Quote Share 0
            • W
              whycan晕哥 LV 9 last edited by

              是否能找到

              ~/.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
              
              H 1 Reply Last reply Reply Quote Share 0
              • H
                haoxuan.cui LV 3 @whycan last edited by

                @whycan ~/.ssh/目录下没有这两个文件,是否需要自己创建呢?

                W lvguojian 2 Replies Last reply Reply Quote Share 0
                • W
                  whycan晕哥 LV 9 @haoxuan.cui last edited by whycan

                  需要的, 你网上找一下ssh 私钥的部署文章.

                  https://zj-linux-guide.readthedocs.io/zh_CN/stable/ssh/[Ubuntu 16.04][SSH]添加私钥缓存.html

                  H 1 Reply Last reply Reply Quote Share 0
                  • lvguojian
                    IRON LV 4 @haoxuan.cui last edited by

                    @haoxuan-cui

                    这里有生成公钥的说明:
                    http://open.allwinnertech.com/guide/yht2/chan_pin_bao_xia_zai/zi_yuan_ku/13001_shang_chuan_gong_yao.html

                    H 1 Reply Last reply Reply Quote Share 0
                    • H
                      haoxuan.cui LV 3 @whycan last edited by

                      @whycan 我配置了一下~/.ssh/config,指定了ssh key的文件,也用过ssh-add添加了该密钥,但还是原来那个样子,我现在有点分不清是本地没配置好还是密钥没添加好的原因了
                      73ff44e1-42c8-4717-b8cd-36ec760b0b6a-image.png

                      1 Reply Last reply Reply Quote Share 0
                      • H
                        haoxuan.cui LV 3 @lvguojian last edited by

                        @lvguojian 谢谢,但公钥我已经生成过并粘贴到账户里了,所以现在非常迷惑😖
                        6cc34d94-18ab-424f-b839-26f9c68f60e2-image.png

                        1 Reply Last reply Reply Quote Share 0
                        • lvguojian
                          IRON LV 4 last edited by

                          ssh -v haoxuan.cui@sdk.allwinnertech.com

                          加上 -v 选项,打印详细debug信息

                          H 1 Reply Last reply Reply Quote Share 0
                          • H
                            haoxuan.cui LV 3 @lvguojian last edited by whycan

                            @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 1 Reply Last reply Reply Quote Share 0
                            • lvguojian
                              IRON LV 4 @haoxuan.cui last edited by

                              @haoxuan-cui

                              可能是服务器端的问题,麻烦您十五分钟后再试一下

                              H 1 Reply Last reply Reply Quote Share 1
                              • H
                                haoxuan.cui LV 3 @lvguojian last edited by

                                @lvguojian 现在可以连接并下载了,非常感谢!但是下一步repo init的时候又报了这样的错误,您知道是怎么回事吗?
                                77f32cf9-fe6f-41c7-ba1f-c25cf4e335c5-image.png

                                lvguojian 2 Replies Last reply Reply Quote Share 0
                                • lvguojian
                                  IRON LV 4 @haoxuan.cui last edited by

                                  @haoxuan-cui

                                  5cd41025-925e-4c4a-bd7e-36ffa403d05b-图片.png

                                  把这个文件传上来看看,
                                  另外您的python版本是多少?

                                  H 1 Reply Last reply Reply Quote Share 0
                                  • H
                                    haoxuan.cui LV 3 @lvguojian last edited by

                                    @lvguojian python装有2.7跟3.8的,我使用的是3.8版本。然后我发现只要在repo前面加python3就可以顺利执行命令了,请问这样子执行的repo init与repo sync会有影响吗?

                                    lvguojian 1 Reply Last reply Reply Quote Share 0
                                    • lvguojian
                                      IRON LV 4 @haoxuan.cui last edited by

                                      @haoxuan-cui

                                      您电脑之前是不是有安装过其它版本的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

                                      H 2 Replies Last reply Reply Quote Share 0
                                      • H
                                        haoxuan.cui LV 3 @lvguojian last edited by

                                        @lvguojian 我就是按照文档下载的repo,这是我输入上述命令后得到的信息,您看看有没有什么问题
                                        fe2f449c-75c4-459b-8fb6-ccb6b2ae61e2-image.png

                                        1 Reply Last reply Reply Quote Share 0
                                        • H
                                          haoxuan.cui LV 3 @lvguojian last edited by

                                          @lvguojian 另外我在make -j32进行编译时还收到了以下报错,请问跟之前的repo操作有关吗?
                                          8897ed6f-bdb5-4228-b8ea-a93e00c40e7c-image.png 8d7d263e-2d12-4a6f-8a45-d450fb56a3c8-image.png
                                          efc956fd-c6b7-47b3-8eb8-96659aaefd59-image.png

                                          lvguojian 1 Reply Last reply Reply Quote Share 0
                                          • lvguojian
                                            IRON LV 4 @haoxuan.cui last edited by

                                            @haoxuan-cui 在 安装repo失败,输密码后一直提示Permission denied 中说:

                                            @lvguojian 现在可以连接并下载了,非常感谢!但是下一步repo init的时候又报了这样的错误,您知道是怎么回事吗?
                                            77f32cf9-fe6f-41c7-ba1f-c25cf4e335c5-image.png

                                            看了您的截图,repo安装是没问题了,这里报语法错误应该默认的python版太低了,在repo前面加python3执行也是可以的,如果后续还遇到和python版本相关的问题,建议将您的python默认版本设置为 python 3,避免不必要的麻烦

                                            1 Reply Last reply Reply Quote Share 0
                                            • lvguojian
                                              IRON LV 4 @haoxuan.cui last edited by

                                              @haoxuan-cui

                                              看样子和repo没关系,repo sync 过程中没有报错中断,则表明代码已经下载成功,在D1版块新建个帖子跟踪这个问题吧

                                              H 1 Reply Last reply Reply Quote Share 0
                                              • H
                                                haoxuan.cui LV 3 @lvguojian last edited by

                                                @lvguojian 好的👌,感谢您的耐心解答~

                                                1 Reply Last reply Reply Quote Share 0
                                                • E
                                                  edge_gw LV 2 last edited by

                                                  这个问题我也遇见了,解决办法如下:

                                                  到全志官方重新注册个账号,用新的账号下载就好了。

                                                  回顾了下过程,我觉得是全志的账号和SDK的账号不同步导致。

                                                  我在web登录全志账号时,因为忘记了密码,所以重置了下,然后SDK哪里密码怎么输入都不对。所以SDK里的密码应该还是我之前忘记的那个密码。

                                                  1 Reply Last reply Reply Quote Share 0
                                                  • 1 / 1
                                                  • First post
                                                    Last post

                                                  Copyright © 2022 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

                                                  行为准则 | 用户协议 | 隐私权政策