简体   繁体   English

即使服务器中存在ssh密钥,Cap Deployment也会要求输入密码

[英]Cap deploy asks for password even though ssh key is present in server

When I try to ssh to a server, I'm able to do it as my id_rsa.pub key is added to the authorized keys in the server. 当我尝试SSH到服务器时,我可以这样做,因为我的id_rsa.pub密钥已添加到服务器中的授权密钥中。

Now when I try to deploy my code via Capistrano to the server from my local project folder, the server asks for a password. 现在,当我尝试通过Capistrano将代码从本地项目文件夹部署到服务器时,服务器会要求输入密码。

I'm unable to understand what could be the issue if I'm able to ssh and unable to deploy to the same server. 如果无法ssh且无法部署到同一服务器,我将无法理解可能是什么问题。

$ cap deploy:setup $ cap deploy:setup

"no seed data"
triggering start callbacks for `deploy:setup'
* 13:42:18 == Currently executing `multistage:ensure'
*** Defaulting to `development'
* 13:42:18 == Currently executing `development'
* 13:42:18 == Currently executing `deploy:setup'
triggering before callbacks for `deploy:setup'
* 13:42:18 == Currently executing `db:configure_mongoid'
* executing "mkdir -p /home/deploy/apps/development/flyingbird/shared/config"
 servers: ["dev1.noob.com", "176.9.24.217"]
 Password: 

我遇到了问题,每当尝试在不同的环境中部署应用程序时,都有staging.rb,development.rb文件会覆盖我的cap脚本凭据。

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

相关问题 从本地计算机部署到服务器时,Capistrano请求SSH密码 - Capistrano asks for SSH password when deploying from local machine to server eval`ssh-agent`用于上限部署 - eval `ssh-agent` for cap deploy 即使配置文件中存在,也未设置设计secret_key - Devise secret_key not set, even though it's present in profile Capistrano 3 要求 SSH 用户密码,因为在 Ubuntu 20.04 服务器上完成了“do-release-upgrade” - Capistrano 3 asks for SSH user's password since `do-release-upgrade` was done on Ubuntu 20.04 server 即使存在密钥,操作邮箱也会显示“缺少所需的 Mailgun API 密钥” - Action Mailbox saying "Missing required Mailgun API key" even though key is present Linux远程服务器端生产部署 - Linux Remote server cap production deploy cap production deploy error Net :: SSH :: AuthenticationFailed:身份验证失败 - cap production deploy error Net::SSH::AuthenticationFailed: Authentication failed SSH 运行 Capistrano cap 生产部署时身份验证失败 - SSH Authentication fails when running Capistrano cap production deploy Capistrano cap生产部署:初始Net :: SSH :: ConnectionTimeout - Capistrano cap production deploy:initial Net::SSH::ConnectionTimeout 尽管有SSH密钥,Capistrano在部署时会要求输入密码 - Capistrano asks for password when deploying, despite SSH keys
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM