So kopieren Sie den öffentlichen Schlüssel mit der Option ssh-copy-id im Hintergrund

526
Rajkumar Natarajan

Ich kopiere meinen öffentlichen Schlüssel mit einem anderen Computer ssh-copy-id.

$ sudo ssh-copy-id -i /home/vagrant/.ssh/id_rsa.pub vagrant@datanode1.com /bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/home/vagrant/.ssh/id_rsa.pub" The authenticity of host 'datanode1.com (192.168.10.34)' can't be established. ECDSA key fingerprint is SHA256:3BRYoZLj01hdxmOtJ0o6XLgzO90DHvLdHYHnuhXHWQE. ECDSA key fingerprint is MD5:e0:f1:fa:ce:39:56:a3:93:bc:be:9f:1c:65:79:6b:6b. Are you sure you want to continue connecting (yes/no)? yes /bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed /bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys vagrant@datanode1.com's password:   Number of key(s) added: 1  Now try logging into the machine, with: "ssh 'vagrant@datanode1.com'" and check to make sure that only the key(s) you wanted were added. 

Gibt es sowieso kann ich das still machen.

Ich meine ohne Aufforderung Are you sure you want to continue connecting (yes/no)?und Passwortvagrant@datanode1.com's password:

Gibt es einen Weg, wie ich das auch erreichen kann?

0
Ja, bitte verweisen Sie auf diese ähnliche Frage: https://stackoverflow.com/questions/31908788/how-to-sshpass-ssh-copy-id Sirex vor 5 Jahren 0

0 Antworten auf die Frage