I can connect via ssh ubuntu@xx.xxx.xxx.xxx
. but not via cap production deploy:check
current
set :user, "ubuntu"
set :ssh_options, { forward_agent: true }
server "xx.xxx.xxx.xxx",
user: fetch(:user),
roles: %w[web app db]
tried
set :user, "ubuntu"
set :ssh_options, {
forward_agent: true,
user: fetch(:user),
keys: %w(~/.ssh/id_rsa)
}
server "xx.xxx.xxx.xxx",
user: fetch(:user),
roles: %w[web app db]
The "current" used to be my setup for other projects, and I just have to ssh-add
then cap production deploy
What changed? or is my config incorrect?