Git Product home page Git Product logo

Comments (5)

ydkn avatar ydkn commented on June 4, 2024

Can you please give more details about the problem?

from capistrano-rails-console.

joelcogen avatar joelcogen commented on June 4, 2024

I have the same issue, using a specific key in SSH config in deploy/production.rb:

server '1.2.3.4',
  ssh_options: {
    user: 'user',
    keys: ["config/deploy/private_key.pem"]
  }

I guess you're missing something when you load the config? I'll investigate and try to create a PR or at least a failing test, but I'm not familiar with Capistrano internals.

from capistrano-rails-console.

joelcogen avatar joelcogen commented on June 4, 2024

Ok so the issue isn't with the key but with the user, which is fetched from host but the ssh_options.

Workaround (works on master, not 0.5.2), add user to the server options:

server '1.2.3.4',
  user: 'user',
  ssh_options: {
    user: 'user',
    keys: ["config/deploy/private_key.pem"]
  }

Creating a PR.

from capistrano-rails-console.

ydkn avatar ydkn commented on June 4, 2024

Thanks for your input.

Until now I specified the user only through the server options, which works fine - e.g.

server 'foo.bar', user: 'user', roles: %w{web app db}, primary: true

But if capistrano supports both ways this gem should too.

from capistrano-rails-console.

Blackening999 avatar Blackening999 commented on June 4, 2024

Have this error too :|

asking me for pwd to ssh - putting correct one - the response is "Permission denied"

deploy.rb

set :ssh_options, {
   user: "ec2-user",
   forward_agent: true,
   keepalive: true,
   auth_methods: %w(publickey password)
 }

from capistrano-rails-console.

Related Issues (20)

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.