我也跟着上Protecting the Docker daemon Socket with HTTPS本頁面生成ca.pem,服務器key.pem,服務器cert.pem,key.pem和密鑰cert.pem不能ssh到遠程機器的rsync
我想要一個後遠程Docker守護進程使用這些密鑰,因此我通過ssh使用rsync將三個文件(ca.pem,server-key.pem和key.pem)發送到遠程主機的主目錄。身份文件的ssh到遠程主機被稱爲DL-數據測試,internal.pem
[email protected]:~$ 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
遠程主機停止承認,自從身份文件,並開始要求一個不存在的口令。
[email protected]:~$ ssh -i dl-datatest-internal.pem [email protected]
[email protected]'s password:
有誰知道爲什麼以及如何解決它?如果有幫助,我仍然擁有所有的鑰匙。
我的命令中存在拼寫錯誤,'-progress'應該是'--progress',而不應該是問題的根本原因。我記得我仍然可以訪問遠程Docker守護進程,所以我創建了一個容器,並將遠程主機的主目錄安裝到它來檢查發生了什麼。在我看來,整個.ssh /文件夾已被清除,我不知道爲什麼。我不得不老化虛擬機並建立新的虛擬機,但至少現在的問題已經消失 – lingxiao