« Ubuntu 8.04.4 LTS + mysqlhotcopy = "...at line 1 at /usr/bin/mysqlhotcopy line 473"Ubuntu One + Tomboy »

SSH login by RSA key

25.09.11

Permalink 17:49:10, von ff E-Mail , 129 Wörter   German (DE) latin1
Kategorien: Computer, Linux

SSH login by RSA key

After setting up the key files on both the server and the client and trying to log in, the server would still ask for the password:

debug1: read PEM private key done: type RSA
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: publickey,password
debug2: we did not send a packet, disable method
debug1: Next authentication method: password
abc@xyz.intersignum.com's password:

In my case the solution was to have a look at the /var/log/auth.log file: It said something like  Authentication refused: bad ownership or modes for directory /home/... Probably I changed the mode of the home directory of the ssh user by accident. To change it back and ensure correct rights on the relevant files:

chmod go-w ~/
chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys

Noch kein Feedback

Einen Kommentar hinterlassen


Ihre E-Mail-Adresse wird nicht auf dieser Seite angezeigt.

Ihr URL wird angezeigt.
(Zeilenumbrüche werden zu <br />)
(Name, E-Mail-Adresse & Webseite)
(Benutzern erlauben, Sie durch ein Kontaktformular zu kontaktieren (Ihre E-Mail-Adresse wird nicht weitergegeben))
Mai 2012
Mo Di Mi Do Fr Sa So
 << <   > >>
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      

Suche

blogging software