Skip to content

Instantly share code, notes, and snippets.

@kingoamino
Created August 11, 2020 15:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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 user@192.168.0.11 mkdir -p .ssh
Upload key :
cat .ssh/id_rsa.pub | ssh user@192.168.0.11 'cat >> .ssh/authorized_keys'
Set Permission :
ssh user@192.168.0.11 "chmod 700 .ssh; chmod 640 .ssh/authorized_keys"
Connexion without password :
ssh user@192.168.0.11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment