Created
August 11, 2020 15:08
-
-
Save kingoamino/6a166e6aeb2ba42c5c7f2d922007a4a2 to your computer and use it in GitHub Desktop.
ssh_key Connexion without password
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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