Hi Chris,
thanks for the info, I have checked out my keys and I think they are
ok. I have pastied the output of the debug here:

http://pastie.caboo.se/202131

I still can not get this to work. Any ideas anybody?

thanks,
John

On May 23, 12:49 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> I was having a problem with authentication too using an Ubuntu
> machine.  Although mine seemed to crash before prompting me for a
> password.  I also saw a bunch of broken keys in my /etc/ssh folder.
> Since I didn't have any passwordless ssh setup to/from this machine
> and didn't care about keys saved in known_hosts, I decided to nuke
> the /etc/ssh folder and reinstall openssh-server and openssh-client.
> Not sure if it's related, but there was that recent issue with Ubuntu
> not using a random seed for ssh keys.
>
> Also, if it helps, you can take a look at my deploy.rb.  It's not
> quite complete, but I did once have something similar working for
> another app.
>
> ssh_options[:port] = 22
> # ssh_options[:verbose] = :debug
> ssh_options[:username] = 'username'
> ssh_options[:host_key] = 'ssh-dss'
>
> set :user, "username"
> set :application, "remote_host"
> role :web, "remote_host"
> role :app, "remote_host"
> role :db,  "remote_host", :primary => true
> set :deploy_to, "/deploy/to/directory/application_name"
> set :use_sudo, false
> set :checkout, "export"
> set :svn, "/usr/bin/svn"
> set :svn_user, 'username'
> set :svn_password, 'password'
> set :repository,
>   Proc.new  "--username #{svn_user} " +
>        "--password #{svn_password} " +
>        "http://svn.domain.com/application_name/trunk/"; }
> set :ruby, "/usr/bin/ruby"
> set :rake, "/usr/bin/rake"
>
> task :restart_web_server, :roles => :web do
>   run "touch #{current_path}/public/dispatch.fcgi"
> end
>
> after "deploy:start", :restart_web_server
> after "deploy:restart", :restart_web_server
>
> On May 22, 3:31 pm, john <[EMAIL PROTECTED]> wrote:
>
> > Hi Guys,
> > I am trying to get my capistrano setup working for the first time. I
> > have my deploy.rb file, source repo etc all set up and everything is
> > good to go. For some reason I can not authenticate against my remote
> > host and I have no idea why. There should not be a problem. I can log
> > in via ssh (ssh2 port 1021) to my server normally. I am using ubuntu
> > fiesty on my local box and ubuntu dapper on the remote host. My
> > capistrano and dependency versions are:
>
> > capistrano 2.3.0
> > net-ssh 2.0.1
> > net-ssh-gateway 1.0.0
>
> > The ssh portions of my deploy.rb file  (which I think are correct)
> > are:
>
> > ssh_options[:port] = 1021
> > ssh_options[:username] = "my_user_name"
> > ssh_options[:verbose] = :debug
>
> > I am trying to test it out with 'cap deploy:check' which produces the
> > following output:
>
> > $ sudo cap deploy:check
> >   * executing `deploy:check'
> >   * executing "test -d /home/www/my.domain.com/code/releases"
> >     servers: ["my.domain.com"]
>
> > Password: ******
>
> > >connection failed for: host1.softwareassociates.nu 
> > >(Net::SSH::AuthenticationFailed: deploy)
>
> > I have no idea why this is not working. I can enter my password but it
> > never authenticates. The debug out put is not helpful. Considering the
> > recent openssh problem I ran the ssh-vulnkey utility which output:
>
> > Not blacklisted: 2048 my_key_id_here /etc/ssh/ssh_host_rsa_key.pub
> > Not blacklisted: 1024 my_key_id_here /etc/ssh/ssh_host_dsa_key.pub
>
> > Although my /etc/ssh directory does contain key files with a .broken
> > suffix i.e:
> > ssh_host_dsa_key.broken  ssh_host_dsa_key.pub.broken
> > ssh_host_rsa_key.broken  ssh_host_rsa_key.pub.broken
>
> > I am not entirely sure where to start here, any help or advice would
> > be gratefully appreciated,
>
> > best regards,
> > John
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to