This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is based on http://serverascode.com/2014/03/13/boot2docker-qemu.html | |
After running the script, you should be able to login using: | |
ssh-keygen -R $IP # if the host-key is already know for that IP-address | |
ssh-keyscan -p 22 $IP > /var/lib/libvirt/images/boot2docker1.hostfile | |
ssh-keygen -H -f /var/lib/libvirt/images/boot2docker1.hostfile | |
rm -f /var/lib/libvirt/images/boot2docker1.hostfile.old | |
ssh -p 22 -o UserKnownHostsFile=/var/lib/libvirt/images/boot2docker1.hostfile -i /var/lib/libvirt/images/boot2docker1.key docker@$IP |