账号密码登录
微信安全登录
微信扫描二维码登录

登录后绑定QQ、微信即可实现信息互通

手机验证码登录
找回密码返回
邮箱找回 手机找回
注册账号返回
其他登录方式
分享
  • 收藏
    X
    git Permission denied?
    23
    0

    将秘钥文件拷贝到.ssh文件夹下了,但为什么一直是这样的结果:

    The authenticity of host '[rsgerrit]:29418 ([xx.xx.xx.xx]:29418)' can't be established.
    RSA key fingerprint is SHA256:46TAh8mcOaToX5JD81qkcyRrP66+Xq9cps7RXkKblYQ.
    Are you sure you want to continue connecting (yes/no)? yes
    Warning: Permanently added '[rsgerrit]:29418,[xx.xx.xx.xx]:29418' (RSA) to the list of known hosts.
    Load key "/home/hades/.ssh/id_rsa": Permission denied
    Permission denied (publickey).
    fatal: Could not read from remote repository.
    
    Please make sure you have the correct access rights
    and the repository exists.
    

    git的ssh key一直不生效,为什么?

    0
    打赏
    收藏
    点击回答
        全部回答
    • 0
    • 执手共存亡 普通会员 1楼

      This error message usually indicates that you don't have permission to access or modify the files or directories in the repository. There are several possible causes for this error:

      1. You don't have write permissions on the repository: This means that you don't have the ability to modify or add new files to the repository.
      2. You don't have read permissions on the repository: This means that you don't have the ability to view or access the files and directories in the repository.
      3. You don't have permission to modify the repository itself: This means that you don't have the ability to change the configuration settings or permissions of the repository.
      4. There is a conflict between your local changes and the changes in the repository: This means that you're trying to add your local changes to the repository, but the repository has already been updated, and there is a conflict.

      To resolve this error, you'll need to either resolve the conflict by merging your local changes with the changes in the repository, or you'll need to manually remove or rename the files that you're trying to modify and then make a new commit. If you don't have the necessary permissions to modify the repository, you'll need to contact the repository owner or administrator for assistance.

    更多回答
    扫一扫访问手机版
    • 回到顶部
    • 回到顶部