Giter Site home page Giter Site logo

Comments (4)

buffler avatar buffler commented on August 14, 2024 2

I've set this up currently so that my Github oauth token is in a separate, gitignored file, which is then required in my Capistrano deploy.rb file to put the repo_url together. So, I can now successfully deploy to our staging server without including sensitive information in the repo.

I'd still like to find out why I can't use the [email protected]:{github-organization}/{private-repo}.git format for :repo_url, with keys, when all of the SSH forwarding report's requirements seem to be met. If you need further info from me just let me know - and thanks again for any help!

from capistrano-ssh-doctor.

marthesselink avatar marthesselink commented on August 14, 2024

I'm having exactly the same issue, only thing is that I'm using gitlab.com istead of github.
Also is @buffler temporary fix not working for me:

[6656b180] remote: HTTP Basic: Access denied DEBUG [6656b180] fatal: Authentication failed for 'https://OAUTH:@gitlab.com/NAME/NAME.git/'

[cce6eb0e] fatal: unable to access 'https://NAME:PASSWORD/[email protected]/NAME/NAME.git/': Couldn't resolve host 'NAME'

from capistrano-ssh-doctor.

NanoMeko avatar NanoMeko commented on August 14, 2024

Same issue with set :repo_url, '[email protected]:{github-organization}/{private-repo}.git'

1. [success] `repo_url` setting ok

2. [success] ssh private key file exists

3. [success] `ssh-agent` process seems to be running locally

4. [success] `ssh-agent` process recognized by `ssh-add` command

5. [success] ssh private keys added to `ssh-agent`

6. [success] application repository accessible from local machine

7. [success] all hosts using passwordless login

8. [success] `forward_agent` ok for all hosts

9. [success] ssh agent successfully forwarded to remote hosts

10. [error] It seems Capistrano cannot access application git repository from these hosts:

Actions:
- make sure all the previous checks pass. That should make this one work too.

from capistrano-ssh-doctor.

besi avatar besi commented on August 14, 2024

I had some weird issues like this. As soon as I used bundler i.e. bundle exec cap staging deploy it no longer prompted me for a ssh password and continued to work again.

See here https://stackoverflow.com/questions/73713317/capistrano-3-asks-for-ssh-users-password-since-do-release-upgrade-was-done-on

from capistrano-ssh-doctor.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.