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 [email protected] '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