-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Add ssh-host command for getting the ssh host keys #9630
Conversation
Travis tests have failedHey @afbjorklund, 1st Buildmake test
TravisBuddy Request Identifier: 932e8930-2121-11eb-a20b-45518f503c27 |
Can you explain in your PR what the problem is that you are trying to solve, and why the approach this PR takes is the best way to go about solving this problem? It would help to provide context. |
Will do, we broke this PR out from the other work - so it lost the context |
Added context to PR description. |
44e3499
to
50df1b7
Compare
@afbjorklund please check unit test |
Unrelated to PR, I think ? The help was broken, but fixed by PR #9632 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please run generate docs on this PR
/ok-to-test |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: afbjorklund, medyagh The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
kvm2 Driver |
fe44cf2
to
ce40816
Compare
Error: running mkcmp |
kvm2 Driver Times for Minikube (PR 9630): 61.1s 62.8s 58.7s Averages Time Per Log
docker Driver Times for Minikube (PR 9630): 28.1s 28.0s 27.2s Averages Time Per Log
|
Somebody broke the documentation on master, failing the unit tests (fix in |
This is similar to the existing minikube "ssh-key" command, but gets the content of the host key instead of the path to the identity key. The output of this command can be added to the ~/.ssh/known_hosts, for strict host key authentication. For instance when using Docker.
This matches the ssh-add command for identity keys, it will add the host key to the ssh known_hosts file. If a ssh key for the host already exists in the file, it will not be added again so can be run multiple times.
ce40816
to
7822a4e
Compare
This is similar to the existing minikube "ssh-key" command, but gets
the content of the host key instead of the path to the identity key.
The output of this command can be added to the ~/.ssh/known_hosts,
for strict host key authentication. For instance when using Docker.
If you don't set up the host as known ahead of time, you will get a question:
Or graphical equivalent: #9229 (comment)
Adding the host key to the "known_hosts" file, avoids this interactive question.
The host keys are retrieved using the command:
Using
minikube ssh
avoids the question by ignoring host keys*, but that option is less secureand not available when using the Docker
ssh://
URL, which requires setting up the ssh keys.*
-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null
Currently hardcoded to use ssh-rsa (only). To avoid having three lines added per host/machine.
For #9229
And #9548