# https://www.digitalocean.com/community/tutorials/how-to-set-up-ssh-keys-on-ubuntu-1804$ ssh-keygen
Your identification has been saved in /home/diego/_desarrollo/cockpit_key.
Your public key has been saved in /home/diego/_desarrollo/cockpit_key.pub.
Configuración server
# Cheatsheet - Alta de servidores# Script new_server.sh$ ssh -i /.ssh/id_rsa [email protected]$ bash new_server.sh
# Al volver a loguear se carga la pass para el user
$ ssh-keygen
Password to the generated SSH key.
The contents of the ~/.ssh/id_rsa.pub file copied in the clipboard.
Your identification has been saved in /home/diego/.ssh/cockpitweb_key.
Your public key has been saved in /home/diego/.ssh/cockpitweb_key.pub.
# agregué mi llaves (pub y priv) para poder conectarme al resto de los servidores$ cat ~/.ssh/id_rsa.pub | ssh USER@HOST "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"