Git SSH-Setup Zugriff verweigert (publickey)
Frage
Ich bin mit einem VWWare Bild von Ubuntu 8.04 und Probleme auftreten, während git Zugriff über SSH einrichten
Ich erhalte die folgende Ausgabe
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Offering public key:
debug1: Authentications that can continue: publickey
debug1: Offering public key:
debug1: Authentications that can continue: publickey
debug1: Offering public key:
debug1: Authentications that can continue: publickey
debug1: Offering public key:
debug1: Authentications that can continue: publickey
debug1: Trying private key: /home/jars/.ssh/identity
debug1: PEM_read_PrivateKey failed
debug1: read PEM private key done: type <unknown>
Enter passphrase for key '/home/jars/.ssh/identity':
debug1: read PEM private key done: type RSA
debug1: Authentications that can continue: publickey
debug1: No more authentication methods to try.
Permission denied (publickey).
Ich habe den Schlüssel mit ssh-keygen -t rsa
erzeugt
und umbenannt sie identity
(privat) und ida_rsa
(öffentlich), weil sie zunächst wheren't von ssh
gefunden.
Ich habe auch eine Konfigurationsdatei erstellt wie hier dargestellt ...
http://help.github.com/troubleshooting-ssh/
Nichts geändert.
Bin ich etwas fehlt oder ist es etwas falsch im Allgemeinen mit SSH in VMWare verwenden?
Viele Grüße
Lösung
Überprüfen Sie die Berechtigungen für die .ssh-Verzeichnis auf der lokalen und Remote-Seiten:
drwx------ 3 xxx xxx 216 10-04 12:30 .ssh/
-rw------- 1 xxx xxx 745 06-19 12:37 authorized_keys
-rw------- 1 xxx xxx 783 05-08 22:15 config
-rw------- 1 xxx xxx 3.3K 2009-02-21 id_rsa
-rw------- 1 xxx xxx 745 2009-03-06 id_rsa.pub
-rw-r--r-- 1 xxx xxx 53K 09-27 15:51 known_hosts
Wenn das nicht funktioniert, den SSH-Server über die Befehlszeile im Debug-Modus ausgeführt werden. Es kann Ihnen weitere Informationen geben, warum es die Login ablehnt.
sudo /usr/sbin/sshd -Dd