Skip to main content

SSH

Generate a keypair

1 - Generate the key 

ssh-keygen -t rsa -b 4096 -f $HOME/.ssh/SSH_KEY_NAME

 

2 - Copy the key to the server

ssh-copy-id -i ~/.ssh/id_rsa.pub USERNAME@SERVER_IP