Closed sosedoff closed 10 years ago
@sosedoff Need more information. Must be something about your setup. I just tried 2.8 and had no issues with either username/password or login via SSH keys.
Oh wait, you're using the cap actor not ssh actor... let me try again.
@sosedoff
Try adding set :ssh_options, { :config => false }
and see if that helps with 2.8.
@yyyc514 yeah, that did the trick. works now.
Still, its an unexpected behavior..
It doesn't work for me on either 2.7 or 2.8. Capistrano 2.15.5 tries to pull in local ssh options and that mucks with :auth_methods and when auth_methods is mucked with the rescue block is disabled but password also is NOT passed on the first connection attempt - so it will always fails.
My guess is very few Sprinkle users use Capistrano that are using actual passwords vs SSH keys. I just can't see how this would have worked on 2.7 even.
Alright then, closing. Thanks!
I don't think we should close, I can see the issue - just wish I had additional reports. Not sure where to fix it without potentially breaking other users setups.
Since no one else has commented I'm going to re-close this.
Sprinkle SSH authentication does not work with
net-ssh
gem >= 2.8. It simply fails even if the credentials are correct and were working before the upgrade.To reproduce the issue, specify version in Gemfile:
Define capistrano deployment:
Requiring
net-ssh
< 2.8 fixed the issue.