Skip to content

Instantly share code, notes, and snippets.

@neverything
Last active January 19, 2016 16:27
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 neverything/164e7931635125f3f773 to your computer and use it in GitHub Desktop.
Save neverything/164e7931635125f3f773 to your computer and use it in GitHub Desktop.
Howto: Passwordless SSH Login/Deployment on Linux machine

Howto: Passwordless SSH Login/Deployment on Linux machine

Voraussetzung:

  • Du hast einen id_rsa.pub in deinem SSH Verzeichnis auf dem Mac
  • Der Zielserver hat bereits einen .ssh Ordner
  • Du hast das SSH Server Passwort zur Hand
cat ~/.ssh/id_rsa.pub| ssh user@host.example 'cat >> .ssh/authorized_keys'

Was macht das? Dein Key auf deinem id_rsa.pub File wird via SSH an den Server übermittelt und dem File authorized_keys angehängt. So kannst du in Zukunft darauf verzichten das Passwort einzugeben.

Aus dieser Anleitung abgeleitet: http://www.linuxproblem.org/art_9.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment