# Capistrano/Webistrano SSH Auth failure

**URL:** <https://www.ruby-forum.com/t/capistrano-webistrano-ssh-auth-failure/137094>\
**Category:** Rails\
**Created:** [May 8, 2008, 10:23pm UTC](https://www.ruby-forum.com/t/capistrano-webistrano-ssh-auth-failure/137094 "2008-05-08T22:23:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![andypflueger](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/edb3f5/32.png) [@andypflueger](https://www.ruby-forum.com/u/andypflueger)\
**Post date:** [May 8, 2008, 10:23pm UTC](https://www.ruby-forum.com/t/capistrano-webistrano-ssh-auth-failure/137094/1 "2008-05-08T22:23:05Z")

</div>

Hello,

Recently, I setup Webistrano to help manage our Rails application  
projects and deployments. I’m running into some problems deploying to  
our web/app & db hosts. We have restricted sshd (for corporate  
security policy reasons) to use private/public key-based authenticaton  
rather than using password authentication. I have an id\_dsa in my  
“runner” user’s .ssh directory and Webistrano configured appropriately  
for the ssh\_keys parameter equal to /home/user/.ssh/id\_dsa. I’ve also  
tried using id\_rsa keys as well and get same result.

The error that Webistrano sends as a result of the deploy:setup task  
is as follows:

\*\*\* SSH options: setting ssh\_keys to: /home/user/.ssh/id\_dsa

- executing `deploy:setup’
- executing “umask 02 && mkdir -p /webapps/asset\_management /webapps/  
asset\_management/releases /webapps/asset\_management/shared /webapps/  
asset\_management/shared/system /webapps/asset\_management/shared/log /  
webapps/asset\_management/shared/pids”  
servers: [“dbserverIP”, “webappserverIP”]  
\*\*\* connection failed for: webappserverIP  
(Net::SSH::AuthenticationFailed: deployment\_user(SSH login)),  
dbserverIP (Net::SSH::AuthenticationFailed: deployment\_user(SSH  
login))

Thanks in advance as I’m searching this Group and other online Rails  
forums and haven’t yet come up with a solution. My thinking being  
Webistrano is such a new solution for managing Rails app deployment,  
nobody out there has come across this or written up anything. Any  
advice from anyone out there in the Rails community would be greatly  
appreciated. 🙂

Thanks!

---

<div class="post-metadata">

**Author:** ![andypflueger](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/edb3f5/32.png) [@andypflueger](https://www.ruby-forum.com/u/andypflueger)\
**Post date:** [May 9, 2008, 4:43pm UTC](https://www.ruby-forum.com/t/capistrano-webistrano-ssh-auth-failure/137094/2 "2008-05-09T16:43:55Z")

</div>

Hi,  
Haven’t tried this with Webistrano but i guess the config will be  
similar…

My deploy.rb for my production site using Capistrano has the  
following:

default\_run\_options[:pty] = true  
ssh\_options[:username] = “myusername”  
ssh\_options[:host\_key] = “ssh-rsa”  
ssh\_options[:port] = 22

The top line is the one that makes it work for me. I don’t claim to  
understand why by Jamis B. recommended it!

Hope that helps,

Joe
