-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connection failed #55
Comments
Figured that out. I had to add password. |
Hi, I have the same problem... Where or what did you add password to? |
@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 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. |
Fantastic! Thanks. Regards. |
Here's an article regarding adding keys to |
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. |
Try .ssh/ instead of .shh/ Cheers, |
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 |
@romanostolosh-devpronet check this: mscdex/ssh2#70 |
@pstadler thanks! |
I had error with authentication, sounds like "All configured authentication methods failed". 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. |
Where should I write this please? |
I have connection failed but very strange.
It makes
rsync
. SO the connection to SSH must be ok.When i connect in terminal with
ssh deploy@10.10.10.10
it works perfect without require login based on default RSA key.This is how I setup connection
So this is what I get.
The text was updated successfully, but these errors were encountered: