flightplan icon indicating copy to clipboard operation
flightplan copied to clipboard

Add support for usernames already defined in ssh config

Open joshunger opened this issue 9 years ago • 2 comments

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 avatar Aug 22 '16 13:08 joshunger

Please check this.

https://github.com/pstadler/flightplan/issues/117#issuecomment-178592529

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

pstadler avatar Aug 22 '16 14:08 pstadler

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

theY4Kman avatar Feb 01 '17 02:02 theY4Kman