ruby-on-rails - git@github.com:权限被拒绝(公钥)。致命:无法从远程存储库中读取。在云 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
解决方案
推荐阅读
- c# - Blazor输入+数据列表如何将选定的项目绑定到对象
- sqlite - 使用事务函数在 SQLite 中使用 React Native SQLite 存储模块创建多个表
- android - 由 java.lang.SecurityException 引发的 InstallReferrerClient.startConnection() 抛出
- node.js - Windows 实例上 AWS 上的 Node js 应用程序
- python - 如何从dict列表中的特定键打印列表的单个项目
- postgresql - 如何在 postgres 中缩短或优化 JOIN 查询
- wordpress - 联系表格 7 更改表格标签输出
- reactjs - 类型“{}”不可分配给类型“postList”
- javascript - 添加事件监听器
- javascript - 为什么我在 chrome 控制台中看不到我的对象反应?