Yelp/kafka-utils

Leveraging OpenSSH ~/.ssh/config

simplesteph opened this issue · 0 comments

Are there any plans on leveraging ~/.ssh/config ?
Basically my issue is that the ssh fails here https://github.com/Yelp/kafka-utils/blob/master/kafka_utils/util/ssh.py#L118 with a cryptic error message if I don't add , username=ubuntu or whatever my username is.

How does Yelp specify specific username to ssh into their kafka brokers, or ssh configuration overall (tunnels, etc)? Or is it something I need to do a PR on?

My ~/.ssh/config looks like this, and the User field doesn't get picked up:

Host 10.13.80.*
    IdentityFile ~/.ssh/my-identity.pem
    User ubuntu
    UserKnownHostsFile /dev/null
    StrictHostKeyChecking no
    ServerAliveInterval 60