Reply to comment

SSH2 Verbindung in Eclipse mit SSH Key Datei anstatt Passwort (auch Zend Studio for Eclipse)

Um die Sicherheit einer SSH Verbindung zusätzlich zu erhöhen und vor allem Benutzer eindeutig zu identifizieren, empfiehlt sich die Verwendung eines SSH Keys.

Da die Verwendung eines Solchen in Eclipse (beziehungsweise Zend Studio for Eclipse, im Beispiel Version 8.0.0 beta) nicht gerade leicht gemacht wird, möchte ich hier die Vorgehensweise noch einmal dokumentieren:


Zunächst einmal, wenn ihr den Schlüssel nur als "*.ppk"-Schlüssel besitzt, hilft euch das Tool "puttygen.exe", das ihr hier herunterladen könnt.

Dort importiert ihr den Schlüssel per "Load" und nutzt danach oben im Menü die Schaltfläche "Conversions > Export OpenSSH Key".

Den exportierten Schlüssel nennt ihr (je nach Typ des Schlüssels, diesen seht ihr unten im Programm angecheckt), "id_dsa" oder "id_rsa".


Nun weiter in Eclipse:
Öffnet: "Window > Preferences > General > Network Connections > SSH2", dann seht ihr in etwa das folgende Bild:
Eclipse SSH2 Key Passwort Verbindung

Unter "SSH2 home" wählt ihr das Verzeichnis aus, in dem ihr eure zu verwendenden privaten Schlüssel gespeichert habt (notfalls kopiert den vorhin erzeugten dort hinein, falls ihr kein zentrales Verzeichnis besitzt).
Unter "Private keys" gebt ihr nun kommagetrennt die Namen dieser privaten Schlüsseldateien an. Wenn ihr ohnehin nur einen Schlüssel verwendet und ihn wie vorhin angegeben benannt habt (was natürlich keine Pflicht ist), braucht ihr nicht einmal mehr etwas ändern.

Die anderen Tabreiter spielen keine weitere Rolle. Unter "Key Management" könnten beispielsweise neue Schlüssel erzeugt werden.

Viel Erfolg damit, über Kommentare und Ergänzungswünsche würde ich mich freuen.

Reply

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account associated with the e-mail address you provide, it will be used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Internal paths in single or double quotes, written as "internal:node/99", for example, are replaced with the appropriate absolute URL or path. Paths to files in single or double quotes, written as "files:somefile.ext", for example, are replaced with the appropriate URL that can be used to download the file.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd><blockquote>
  • Lines and paragraphs break automatically.
  • Pairs of<blockquote> tags will be styled as a block that indicates a quotation.
  • You can enable syntax highlighting of source code with the following tags: <c>, <cpp>, <css>, <drupal5>, <drupal6>, <java>, <javascript>, <mysql>, <php>, <python>, <ruby>, <smarty>, <xml>. The supported tag styles are: <foo>, [foo]. PHP source code can also be enclosed in <?php ... ?> or <% ... %>.
  • Textual smileys will be replaced with graphical ones.
  • Each email address will be obfuscated in a human readable fashion or (if JavaScript is enabled) replaced with a spamproof clickable link.

More information about formatting options

Type the characters you see in this picture. (verify using audio)
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.