Comments (13)
@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.
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.
Try .ssh/ instead of .shh/
Cheers,
Patrick
from flightplan.
Figured that out. I had to add password.
from flightplan.
Hi, I have the same problem... Where or what did you add password to?
Thanks.
from flightplan.
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.
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.
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.
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.
@romanostolosh-devpronet check this: mscdex/ssh2#70
from flightplan.
@pstadler thanks!
Sounds like a plan :)
from flightplan.
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.
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)
- Bad option: --harmony_arrow_functions if run from `npm run` HOT 1
- 'npm EER! code 1' When installing dependencies
- Optimized localhost target? HOT 1
- Run local-only flights without specifying remote on command-line HOT 3
- Allow execution w/o targets HOT 1
- Looking for help / maintainers HOT 5
- remote.sudo can't run apt-get as root HOT 1
- Custom SSH Connection
- Failsafe option doesn't work for SSH Auth Failure HOT 6
- Broken on node 4.x due to node-fibers dependency removing node 4.x binary HOT 2
- Please support [email protected] for Windows users on Node 8 HOT 2
- fly VS fly conflict HOT 2
- Installing flightplan fails node 8.1.2 npm 5.3.0 (but works when installing twice)
- Error connecting to '...': All configured authentication methods failed HOT 1
- Support for Node v8+
- Permission denied when running sudo command HOT 1
- Transfer files from parent folder HOT 3
- [email protected] not compatible with Node 12? HOT 4
- Unclear documentation: Why are commands run in parallel on remote?
- Running from another js file HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flightplan.