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

Dynamic Uno: Support strict host key checking #78

Merged
merged 1 commit into from
Jan 4, 2017

Conversation

krallin
Copy link
Contributor

@krallin krallin commented Dec 14, 2016

This adds support for enabling strict host key checking. This requires
API to expose a Stack relation on Accounts and, and requires the Stack
to provide a RSA host key.


cc @fancyremarker @blakepettersson

krallin added a commit to krallin/aptible-cli that referenced this pull request Dec 14, 2016
'-o', 'IdentitiesOnly=yes',
'-o', "UserKnownHostsFile=#{known_hosts_file}",
'-o', 'StrictHostKeyChecking=yes',
'-o', 'UpdateHostKeys=no'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't believe this is an issue at all, given our planned deprecation of gem install aptible-cli (i.e., outside a Toolbelt context), but just fwiw UpdateHostKeys does not appear to be supported on what I believe is the default SSH client shipping w/ OS X 10.10 Yosemite (albeit a 5 year old version):

$ ssh -V
OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011
$ ssh -o UpdateHostKeys=no host
command-line: line 0: Bad configuration option: UpdateHostKeys

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch; thanks @fancyremarker! I've removed that option, since it wasn't really required and there's no reason to unconditionally break the SSH bits of the CLI on older platforms just for the sake of it 😄

This adds support for enabling strict host key checking. This requires
API to expose a Stack relation on Accounts and, and requires the Stack
to provide a RSA host key.
@krallin krallin merged commit 2a86f9b into aptible:master Jan 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants