如何解决部署第一个 Rails3 应用程序时 ssh 密钥拒绝的问题?
我正在尝试使用 Git & 第一次将 Rails3 应用程序部署到 Dreamhost。卡皮斯特拉诺。使用 Dreamhost 的 Capistrano 设置说明。直到最后一个错误:
Cap deploy:check => looks good.
Cap deploy:setup => looks good.
但是,Cap deploy:cold =>失败:
** [alvarez.dreamhost.com :: out] Permission denied (publickey).
** [alvarez.dreamhost.com :: out] fatal: The remote end hung up unexpectedly
等变量
ssh_options[:keys] = %w(/home/bubby/.ssh/id_rsa)
set :chmod755, "app config db lib public vendor script script/* public/disp*"
set :use_sudo, false
我的 config/deploy.rb 文件包含在家庭 PC 上完成的公钥设置 。 (Ubuntu。)使用 GitHub 存储库。
已按照 DH 的指示将公钥复制到域目录。
有什么建议吗?达到 DH 帮助能力的极限。谢谢。
I'm trying to deploy a Rails3 application, for the 1st time, to Dreamhost using Git & Capistrano. Using Dreamhost's Capistrano setup instructions. Down to one last error:
Cap deploy:check => looks good.
Cap deploy:setup => looks good.
However, Cap deploy:cold => fails:
** [alvarez.dreamhost.com :: out] Permission denied (publickey).
** [alvarez.dreamhost.com :: out] fatal: The remote end hung up unexpectedly
My config/deploy.rb file contains, among other variables,
ssh_options[:keys] = %w(/home/bubby/.ssh/id_rsa)
set :chmod755, "app config db lib public vendor script script/* public/disp*"
set :use_sudo, false
Public key setup completed on home PC. (Ubuntu.) Working with GitHub repository.
Have copied public key to domain directory per DH's instructions.
Any suggestions? Reaching the limit of DH's help capabilities. Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请将存储库 URL 设置为只读版本:
set :repository, "https://github.com/bjpcjp/catalog.git"
否则 git 会尝试使用您的私有 ssh 密钥进行身份验证反对 GitHub。除非您采取其他操作,否则这会在服务器上失败。
Please set the repository url to the read-only version:
set :repository, "https://github.com/bjpcjp/catalog.git"
Otherwise git is trying to use your private ssh key to authenticate against GitHub. This fails on server unless you take additional actions.