简体   繁体   English

git@github.com:权限被拒绝(公钥)。 致命:无法从远程存储库读取。 在云上 9

[英]git@github.com: Permission denied (publickey). fatal: Could not read from remote repository. on cloud 9

I am trying to deploy a rails site online using the steps in https://gorails.com/deploy/ubuntu/18.04 but when I run cap production deploy I receive, What can I do to fix it please, I am using aws cloud 9我正在尝试使用https://gorails.com/deploy/ubuntu/18.04 中的步骤在线部署一个 rails 站点,但是当我运行cap production deploy我收到了,我该怎么做才能修复它,我正在使用 aws cloud 9

deploy@93.188.163.140's password:
00:00 git: wrapper
      01 mkdir -p /tmp
    ✔ 01 deploy@X.X.X.X 0.158s
      Uploading /tmp/git-ssh-young-production-ubuntu.sh 100.0%
      02 chmod 700 /tmp/git-ssh-young-production-ubuntu.sh
    ✔ 02 deploy@93.188.163.140 0.156s
00:00 git:check
      01 git ls-remote git@github.com:oomis/young.git HEAD
      01 Warning: Permanently added the RSA host key for IP address '140.82.113.4' to the list of known hosts.
      01 git@github.com: Permission denied (publickey).
      01 fatal: Could not read from remote repository.
      01
      01 Please make sure you have the correct access rights
      01 and the repository exists.
#<Thread:0x0000564f38e1cb38@/home/ubuntu/.rvm/gems/ruby-2.6.3/gems/sshkit-1.20.0/lib/sshkit/runners/parallel.rb:10 run> terminated with exception (report_on_exception is true):
Traceback (most recent call last):
        13: from /home/ubuntu/.rvm/gems/ruby-2.6.3/gems/sshkit-1.20.0/lib/sshkit/runners/parallel.rb:12:in `block (2 levels) in execute'

.```

I expect it to deploy my app, how can I fix this, please

This is caused by ssh key.这是由 ssh 密钥引起的。 Please refer to this official GitHub docs page on how to generate one if you haven't.如果您还没有,请参阅此官方 GitHub 文档页面,了解如何生成一个。 If you already have ssh, add ssh identity from your local machine terminal,如果您已经有 ssh,请从本地机器终端添加 ssh 身份,

ssh-add ~/.ssh/id_rsa

Note that this will only add identity for one time deployment and you will need to add again each time the terminal or machine is rebooted.I am not sure what local machine you are using.请注意,这只会为一次部署添加身份,每次重新启动终端或机器时都需要再次添加。我不确定您使用的是什么本地机器。 This stack answer might help how to add ssh permanently to your machine.此堆栈答案可能有助于如何将 ssh 永久添加到您的机器。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 权限被拒绝(公钥)。 严重的:无法从远程存储库读取 - Permission denied (publickey). fatal: Could not read from remote repository Heroku:权限被拒绝(公钥)。 致命的:执行git push时无法从远程存储库读取 - Heroku: Permission denied (publickey). fatal: Could not read from remote repository when doing git push Heroku权限被拒绝。 致命:无法从远程存储库读取。 - Heroku Permission denied. fatal: Could not read from remote repository. 捆绑安装失败“ ..似乎不是致命的git存储库:无法从远程存储库读取。” - bundle install fail “..does not appear to be a git repository fatal: Could not read from remote repository.” git remote push:权限被拒绝(publickey,键盘交互) - git remote push : Permission denied (publickey,keyboard-interactive) 尝试安装 gem:公寓:致命:无法从远程存储库中读取 - Trying to install gem: apartment : Fatal: Could not read from remote repository Capistrano 3部署:致命:无法从远程存储库读取 - Capistrano 3 deploy: fatal: Could not read from remote repository Rails 4 + Capistrano 3:致命:部署时无法从远程存储库读取 - Rails 4 + Capistrano 3 : fatal: Could not read from remote repository while deploying Capistrano 和 GitHub Private Repo – 权限被拒绝(公钥) - Capistrano and GitHub Private Repo – Permission denied (publickey) 由于publickey推送到github时拒绝权限 - permission denied when pushing to github because of publickey
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM