Coder Social home page Coder Social logo

Connection failed about flightplan HOT 13 CLOSED

pstadler avatar pstadler commented on May 18, 2024
Connection failed

from flightplan.

Comments (13)

Serhioromano avatar Serhioromano commented on May 18, 2024 4

@rriosarias First I made like this

plan.target('production', {
    host: '54.145.**.**',
    username: 'deploy',
    password: '*********',
    agent: process.env.SSH_AUTH_SOCK
});

But that was not secure to upload this settings to github. What I did I created id_rsa certificate. Uploaded publick key to server. And pointed my private.

plan.target('production', {
    host: '54.145.**.**',
    username: 'deploy',
    privateKey: '/Users/Sergey/.shh/id_rsa',
    agent: process.env.SSH_AUTH_SOCK
});

And this way it also connect but I do not need to expose my password.

Just make sure that you can connect to your server SSH without the password being asked.

from flightplan.

artdevjs avatar artdevjs commented on May 18, 2024 4

I had error with authentication, sounds like "All configured authentication methods failed".
But I solved this by adding path to the privatekey in the connection config.

plan.target('staging', [{
        host: host,
        username: username,
        privateKey: 'path/to/the/.ssh/id_rsa',
        agent: process.env.SSH_AUTH_SOCK
    }
]);

from flightplan.

pstadler avatar pstadler commented on May 18, 2024 1

Try .ssh/ instead of .shh/

Cheers,
Patrick

from flightplan.

Serhioromano avatar Serhioromano commented on May 18, 2024

Figured that out. I had to add password.

from flightplan.

rolo-js avatar rolo-js commented on May 18, 2024

Hi, I have the same problem... Where or what did you add password to?
Thanks.

from flightplan.

rolo-js avatar rolo-js commented on May 18, 2024

Fantastic! Thanks.
FYI, while experimenting, I discovered that you can also use the path to the rsa key in the "agent" property instead of the .SSH_AUTH_SOCK value.

Regards.

from flightplan.

pstadler avatar pstadler commented on May 18, 2024

Here's an article regarding adding keys to ssh-agent for passwordless authentication: https://help.github.com/articles/working-with-ssh-key-passphrases/

from flightplan.

neilhanekom avatar neilhanekom commented on May 18, 2024

Hi Guys,

I am having the same issue here. I have added my rsa_id keys prior to this. So I can connect to my server without password.

Now adding privateKey key/pair to the production object as you have suggested gives me the following line:

Warning: Identity file /Users/neilhanekom/.shh/id_rsa not accessible: No such file or directory.

This is probably a permission/role issue. But I would greatly appreciate if anyone can help me on this.

from flightplan.

romanostolosh-devpronet avatar romanostolosh-devpronet commented on May 18, 2024

Hi everyone,

Cool tool. Just wanted to say that.

One thing that I found inconvenient though is that you still have to provide privateKey, username and so on, regardless the fact that we may have fully functional and configured ssh client localy..

What I'm trying to say is that it would be really cool if we were able to make use of ~/.ssh/config file that user may already have configured

Is it even technically possible?

Thank you in andvance

from flightplan.

pstadler avatar pstadler commented on May 18, 2024

@romanostolosh-devpronet check this: mscdex/ssh2#70

from flightplan.

romanostolosh-devpronet avatar romanostolosh-devpronet commented on May 18, 2024

@pstadler thanks!
Sounds like a plan :)

from flightplan.

ALEXOTANO avatar ALEXOTANO commented on May 18, 2024

I had error with authentication, sounds like "All configured authentication methods failed".
But I solved this by adding path to the privatekey in the connection config.

plan.target('staging', [{
        host: host,
        username: username,
        privateKey: 'path/to/the/.ssh/id_rsa',
        agent: process.env.SSH_AUTH_SOCK
    }
]);

Works perfectly, just careful not tu use ~/.ssh/key use the whole path.

from flightplan.

MohamedNedal avatar MohamedNedal commented on May 18, 2024

I had error with authentication, sounds like "All configured authentication methods failed".
But I solved this by adding path to the privatekey in the connection config.

plan.target('staging', [{
        host: host,
        username: username,
        privateKey: 'path/to/the/.ssh/id_rsa',
        agent: process.env.SSH_AUTH_SOCK
    }
]);

Where should I write this please?

from flightplan.

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.