I followed this page on Protecting the Docker daemon Socket with HTTPS to generate ca.pem, server-key.pem, server-cert.pem, key.pem and key-cert.pem
I wanted a remote Docker daemon to use those keys so i used rsync via ssh to send three of the files(ca.pem, server-key.pem and key.pem) to the remote host's home directory. The identity file for ssh into the remote host is called dl-datatest-internal.pem
ubuntu@ip-10-3-1-174:~$ rsync -avz -progress -e "ssh -i dl-datatest-internal.pem" dockerCer/ [email protected]:~/
sending incremental file list
./
ca.pem
server-cert.pem
server-key.pem
sent 3,410 bytes received 79 bytes 6,978.00 bytes/sec
total size is 4,242 speedup is 1.22
The remote host stopped recognising the identity file ever since and started asking for a non-existent password.
ubuntu@ip-10-3-1-174:~$ ssh -i dl-datatest-internal.pem [email protected]
[email protected]'s password:
Does anyone know why and how to fix it? I still have all the keys if that helps.
-progress
should be--progress
instead but that shouldn't be the root cause of the problem. i remembered that i still had access to the remote Docker daemon so i created a container with that and mounted the remote host's home directory to it to check what had happened. seemed to me the whole .ssh/ folder was wiped out and i have no idea why. i had to nuke the old VMs and build new ones but at least the problems are gone for now – Guru