Skip to content
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

Add support for usernames already defined in ssh config #147

Open
joshunger opened this issue Aug 22, 2016 · 2 comments
Open

Add support for usernames already defined in ssh config #147

joshunger opened this issue Aug 22, 2016 · 2 comments

Comments

@joshunger
Copy link

joshunger commented Aug 22, 2016

Is it possible to add support for usernames already defined in the ssh config? It isn't technically "passing" it but ssh just uses it. This is how I believe Ansible works. This would be very helpful so (a) usernames aren't hardcoded and (b) a username configured already for the server in ssh so you don't duplicate the definition elsewhere.

An easy example is ec2-user for Amazon Linux instances. I already have this defined in my ssh config. I'd like to avoid defining it in another spot.

@joshunger joshunger changed the title Pass username from ssh config Add support for usernames already defined in ssh config Aug 22, 2016
@pstadler
Copy link
Owner

pstadler commented Aug 22, 2016

Please check this.

#117 (comment)

PRs are welcome, as I don't have much time to work on open source projects currently.

@theY4Kman
Copy link

As an FYI (and shameless plugging), flightplan-sshconf provides support for reading from SSH config files to fill unpassed connection options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants