2010-10-04 7 views
5

Ich bin ein VWWare Bild von Ubuntu 8.04 und erleben Probleme mit, während SSH git Zugang überGit SSH-Setup Zugriff verweigert (publickey)

Einrichtung

bekomme ich 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). 

I erzeugt haben die Tasten mit ssh-keygen -t rsa

und umbenannt sie identity (privat) und ida_rsa (öffentlich), weil sie zunächst von ssh gefunden wheren't.

Ich habe auch eine Konfigurationsdatei as depicted here ...

http://help.github.com/troubleshooting-ssh/

nichts geändert.

Fehle ich etwas oder ist generell etwas mit der Verwendung von SSH in VMWare nicht in Ordnung?

Grüße

+0

Hinweis für Moderatoren: Jede Git Frage hat nichts mit Superuser zu tun. Git ist ein ** Programmierwerkzeug, und als solches gehört 100% zu SO. – VonC

+0

"privat"? Ich dachte, ein ssh rsa privater Schlüssel war Name 'id_rsa', nicht' private' ... – VonC

+0

@Von: Es ist keine GitHub Frage, es hat mit Problemen zu tun, die einen öffentlichen/privaten Schlüssel erstellen und verwenden. –

Antwort

5

Ihre Berechtigungen auf Ihrem .ssh-Verzeichnis auf den lokalen und Remote-Seiten überprüfen: den SSH-Server über die Befehlszeile im Debug-Modus

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, führt. Es kann Ihnen mehr Informationen darüber geben, warum es die Anmeldung ablehnt.

sudo /usr/sbin/sshd -Dd 
+0

Danke! Das Ausführen des SSH-Servers im Debug-Modus war sehr hilfreich. – vinod