ssh-keygen -t rsa -b 4096 -C "user@remotehost"
ssh-copy-id -i ~/.ssh/id_rsa_user_remotehost.pub user@remotehost
[ -n "$SSH_AUTH_SOCK" ] || eval `ssh-agent -s` # create a new ssh-agent if no agent was found
ssh-add ~/.ssh/id_rsa_user_remotehost
Last active
December 13, 2024 10:26
-
-
Save ramingar/a5275e7fe3eaf72585e785871802819e to your computer and use it in GitHub Desktop.
Crear claves RSA para evitar poner contraseña #ssh #password #remote #command #rsa
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment