Skip to content
This repository has been archived by the owner on Sep 1, 2020. It is now read-only.

Cannot setup via SSH (AuthenticationFailed error) #45

Open
gioele opened this issue Jul 19, 2013 · 7 comments
Open

Cannot setup via SSH (AuthenticationFailed error) #45

gioele opened this issue Jul 19, 2013 · 7 comments

Comments

@gioele
Copy link

gioele commented Jul 19, 2013

I set up my remote for deploy using

$ git remote add production "ssh://userAAA@server:port/web/dir"

While running

$ git deploy setup -r "production"

I get the following error:

gems/net-ssh-2.6.8/lib/net/ssh.rb:207:in `start': userAAA (Net::SSH::AuthenticationFailed)
    from gems/git-deploy-0.6.0/lib/git_deploy/ssh_methods.rb:96:in `ssh_connection'
    from gems/git-deploy-0.6.0/lib/git_deploy/ssh_methods.rb:43:in `ssh_exec'
    from gems/git-deploy-0.6.0/lib/git_deploy/ssh_methods.rb:35:in `run_test'
    from gems/git-deploy-0.6.0/lib/git_deploy.rb:28:in `setup'
    from gems/thor-0.14.6/lib/thor/task.rb:22:in `run'
    from gems/thor-0.14.6/lib/thor/invocation.rb:118:in `invoke_task'
    from gems/thor-0.14.6/lib/thor.rb:263:in `dispatch'
    from gems/thor-0.14.6/lib/thor/base.rb:389:in `start'
    from gems/git-deploy-0.6.0/bin/git-deploy:3:in `<top (required)>'
    from bin/git-deploy:23:in `load'
    from bin/git-deploy:23:in `<main>'
@koenpunt
Copy link

Does connecting require a password? Because as far as I know git-deploy has no password prompt so that's is probably the reason why it's failing.

@gioele
Copy link
Author

gioele commented Jul 19, 2013

Yes, it does require a password.

Couldn't git-deploy support passwords prompts or, at least, warn about them?

@mislav
Copy link
Owner

mislav commented Jul 19, 2013

It could, I'll look into it. If anyone wants to solve this in Ruby, go ahead. The net/ssh library probably has an extra option for this or something.

For now, just setup key authentication. You'll do crazy if you have to re-enter the password on every deploy.

@fanchangyong
Copy link

I have encounterd the same problem.
My remote server opened a ssh server port at 5022 not 22,and I specify the port as follow:
git add production "user@server:5022/path"

and I use git deploy setup -r "production"
and i have received the same message (Net::SSH::AuthenticationFailed)

And I used tcpdump to observe the packets,it showed me that git-deploy tried to connect to port 22,not 5022 that I specified.

@hadifarnoud
Copy link

seems like @mislav is not maintaining this repo any more. any chance one of you guys fork it? I'd help if I could

@mislav
Copy link
Owner

mislav commented Aug 5, 2014

I'm not maintaining it lately but I'm still using it simply because it works for me.

If an extra option should be needed, I'll review any PR that's opened against this repo. Thanks!

@hadifarnoud
Copy link

That's awesome. I haven't used it yet. All I care is a working version. It's good enough as is. 
_____________________________
From: Mislav Marohnić notifications@github.com
Sent: Wednesday, August 6, 2014 1:07 am
Subject: Re: [git-deploy] Cannot setup via SSH (AuthenticationFailed error) (#45)
To: mislav/git-deploy git-deploy@noreply.github.com
Cc: Hadi Farnoud hadi.farnoud@gmail.com

I'm not maintaining it lately but I'm still using it simply because it works for me.

If an extra option should be needed, I'll review any PR that's opened against this repo. Thanks!


Reply to this email directly or view it on GitHub.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants