Closed houmark closed 6 years ago
@boutell maybe you have a hint here?
I've been reviewing the source code, and I could not find any code related to enforcing a key when deploying. Maybe I'm missing something obvious here, but I also tried more generic ssh approaches with having the server hostname / IP set to use the key, but that also didn't make stagecoach use the key, so I'm stuck at pasting passwords at every deploy.
Yes, this is what we do all the time. I never have to type passwords, which is a relief given how many clients we have (:
It's just making ssh connections, nothing more than you do at the command line. So probably something isn't right about your generic setup for a trusted ssh public key.
On Tue, Jul 10, 2018 at 10:35 PM, houmark notifications@github.com wrote:
@boutell https://github.com/boutell maybe you have a hint here?
I've been reviewing the source code, and I could not find any code related to enforcing a key when deploying. Maybe I'm missing something obvious here, but I also tried more generic ssh approaches with having the server hostname / IP set to use the key, but that also didn't make stagecoach use the key, so I'm stuck at pasting passwords at every deploy.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/punkave/stagecoach/issues/24#issuecomment-404025672, or mute the thread https://github.com/notifications/unsubscribe-auth/AAB9fYauM3OgwrKZHgMQfm0ztjSHhhE0ks5uFWRogaJpZM4UzdD_ .
--
THOMAS BOUTELL, CHIEF SOFTWARE ARCHITECT P'UNK AVENUE | (215) 755-1330 | punkave.com
Closing this because stagecoach already respects your configuration in .ssh/config (as any generic ssh command will).
Thanks for the confirmation. I redid my local configuration from scratch and it works now, so I guess I was doing something wrong the first time I tried doing this.
Additionally I have put on my todo to update the README with more clear instructions on this and also find a better link for the links that's broken in the current README.
From the README.md:
I've tried various things to get a key to authenticate when deploying, but nothing works. Could you advise how you have your keys on a client machine? I have tried inside
~/.ssh
and also configuring inside~/.ssh/config
for the location of the key file for each host name to no avail.Of course, authentication to the server through normal SSH is working just fine using the
ssh -i
parameter to point to the location of the key file.P.S. The link in the README to how to set up a key file is broken, may want to fix that.