Skip to content

Instantly share code, notes, and snippets.

@madeindjs
Created August 2, 2017 11:46
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 madeindjs/415ea3e9789cdd903e17758c2efd4c85 to your computer and use it in GitHub Desktop.
Save madeindjs/415ea3e9789cdd903e17758c2efd4c85 to your computer and use it in GitHub Desktop.

Configurer le fichier ssh

$ cat ~/.ssh/config 
Host pi
  Hostname 5.50.77.180
  Port 2812
  User pi
  IdentityFile ~/.ssh/raspberry.id_rsa

Génerer une clé

ssh-keygen -t rsa -C "RaspPI" -b 4096

La copier sur le raspberry

$ ssh-copy-id -i ~/.ssh/raspberry.id_rsa pi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment