Skip to content

Instantly share code, notes, and snippets.

@kingoamino
Created August 11, 2020 15:08
Show Gist options
  • Save kingoamino/6a166e6aeb2ba42c5c7f2d922007a4a2 to your computer and use it in GitHub Desktop.
Save kingoamino/6a166e6aeb2ba42c5c7f2d922007a4a2 to your computer and use it in GitHub Desktop.
ssh_key Connexion without password
From client machine :
ssh-keygen -t rsa
Create .ssh in remote server fron client :
ssh [email protected] mkdir -p .ssh
Upload key :
cat .ssh/id_rsa.pub | ssh [email protected] 'cat >> .ssh/authorized_keys'
Set Permission :
ssh [email protected] "chmod 700 .ssh; chmod 640 .ssh/authorized_keys"
Connexion without password :
ssh [email protected]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment