Compartició de claus SSH entre portàtils
Per fer-ho el que farem serà en el nostre client copiarem la següent comanda canviant l’usuari per l’usuari del qual volem compartir la nostra clau, i la IP posarem la seva IP, una vegada executem la comanda ens demanarà si mai ens hem connectat aquesta màquina la fingerprint, i després la contrasenya del que li estem compartint la nostra clau.
ssh-copy-id usuari@ip_del_usuari [09:40:16][~][agarcia@agarcia]-$ ssh-copy-id clozano@172.25.209.11
The authenticity of host '172.25.209.11 (172.25.209.11)' can't be established.
ED25519 key fingerprint is SHA256:6rmxyPlqZQWb4uRYUAyhkf0WD1D6CCXe/jsd+YZ1aZ0.
This host key is known by the following other names/addresses:
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
clozano@172.25.209.11's password: