Skip to content

Instantly share code, notes, and snippets.

@ramingar
Last active December 13, 2024 10:26
Show Gist options
  • Save ramingar/a5275e7fe3eaf72585e785871802819e to your computer and use it in GitHub Desktop.
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
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment