-
Notifications
You must be signed in to change notification settings - Fork 2k
Turn StrictHostKeyChecking on for SSH #534
Comments
+1. I had the known_hosts stuff adding when we were using IdentityAuth. On Thu, Feb 12, 2015 at 12:19 PM, Nathan LeClaire notifications@github.com
|
We could also drop shelling out to SSH. |
Yes I'm planning this as part of the core refactor. |
Me too. Although it's a large bit of work in terms of security. |
Short term should be to implement this issue and then long term remove it in favour of our own client. |
Wait, what would we do instead? I don't think we want to include a whole SSH / readline implementation in the machine code, why not use what's there? |
The crypto/ssh package will do 90% of the job. |
or, pull ssh out entirely, and use |
@nathanleclaire how were you thinking the host's SSH key would be retrieved to be added to I was thinking it might be interesting to add SSH host keys to new |
@md5 yes cloudinit does this. as a matter of fact, i used this in my cloudinit branch. |
👍 |
My SSH branch will undo any changes to the existing implementation. I have host key checking in my branch. |
@sthulb +1 -- i think we should handle this as part of the |
I just have to change 7 drivers and ensure host key checking actually works. |
ah ok. thanks. |
What should we do when we remove a machine, it would be better to remove it. are we still willing to add the host to the |
My suggestion would be that Machine should maintain and use its own |
Any updates on this issue? It seems like a pretty big deal, and it's been open for a long time now. |
VirtualBox Guest Additions
If you run something like
docker-machine -D ssh dev ls
you'll see the actual SSH command we are running behind the scenes:Some of this looks OK (although we probably don't need the port forward to
localhost
any more), but instead of turning off strict host key checking (a security feature to prevent MITM attacks) we should probably be automatically adding the host to the user'sknown_hosts
file instead. The-o StrictHostKeyChecking=no
was probably OK for local VMs, but the whole game changes when we're SSHing out to machines on the public internet.The text was updated successfully, but these errors were encountered: