You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
joshunger
changed the title
Pass username from ssh config
Add support for usernames already defined in ssh config
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.The text was updated successfully, but these errors were encountered: