kafka-utils icon indicating copy to clipboard operation
kafka-utils copied to clipboard

Use user's local ssh config

Open xiaochuanyu opened this issue 7 years ago • 1 comments

I use a different users and keys for SSH depending on which host(s). kafka-check doesn't allow this right now. This PR attempts to parse user's local ssh config and make use of it. Sample ssh config where this applies:

Host 1.2.3.4
   User ec2-user
   IdentityFile ~/.ssh/key.pem
   StrictHostKeyChecking no
   UserKnownHostsFile /dev/null

xiaochuanyu avatar Nov 10 '17 21:11 xiaochuanyu

@xiaochuanyu I did something similar here: https://github.com/Yelp/kafka-utils/pull/138/files It may be worth refactoring your code and isolate the ssh client construction method for all the other components to benefit from it

simplesteph avatar Jan 03 '18 03:01 simplesteph