Docker Community Forums

Share and learn in the Docker community.

Ssh key with amazon

aws
amazonwebservices

(Djans) #1

I am a newbie in Docker. Here is the simple scenario. I have a docker machine in AMAZON ( Linux RHEL ). From there, i create a docker machine ( using the acceskey parametres … ). No issue at this point. With $eval, i can access the docker engine of this new machine. Now how do I get an SSH session with this new machine ? Docker-machine creates everytime a new Key pair when I create a new machine ( Weird but this is not my point ). The Amazon instance required a private to access it. I have this one when I created myself this key ( through the console of AMAZON ) and used it to SSH my instance, but I cannot use the same one to access the other instance ( created with docker-machine ). This looks to me very basic but I didn’t find any answer googling it.

Thanks a lot.