Re: SSH key authentication - can only login as root



Greg Wooledge wrote:
On Wed, Sep 06, 2006 at 12:10:48PM +0200, Tomasz Chmielewski wrote:
I have a problem with logging in using keys (on Debian).

Sep 6 11:56:13 thecus sshd[18730]: debug1: trying public key file /home/checkuser/.ssh/authorized_keys
Sep 6 11:56:13 thecus sshd[18730]: debug1: restore_uid: 0/0
Sep 6 11:56:13 thecus sshd[18730]: debug1: temporarily_use_uid: 1001/1001 (e=0/0)
Sep 6 11:56:13 thecus sshd[18730]: debug1: trying public key file /home/checkuser/.ssh/authorized_keys2

ls -ld / /home /home/checkuser /home/checkuser/.ssh
ls -ld /home/checkuser/.ssh/authorized_keys*

I bet one or more of these directories/files has group write permission
on it.

Nope, all directories/files, starting from /home/checkuser, have only user permissions.

Besides, this wouldn't explain why this user can login if UID=0, and cannot login if UID=1001.


--
Tomasz Chmielewski
http://wpkg.org



Relevant Pages

  • Re: Generate a report for user logon/logoff?
    ... It should be pointed out that login scripts run under ... user permissions. ... user writes a logout line to the logfile manually ... And if users plug out the network cable while loggin in they might get ...
    (microsoft.public.windows.server.active_directory)
  • Re: ADO.NET help - Filling a DataGrid with contents of a DataSet
    ... database requested in login 'SCMS'. ... To me this is an error with my connection string. ... Check your web folder's user permissions in IIS. ...
    (microsoft.public.dotnet.framework.adonet)
  • OWA Permissions
    ... login locally and exteranlly with my login info that has ... through owa that has regular user permissions. ...
    (microsoft.public.exchange.connectivity)
  • Re: ftp localhost
    ... fewgoodpeople wrote: ... > 530 Please login with USER and PASS. ... > could be the ftp localhost problems? ... Until you understand why there are user permissions, ...
    (comp.os.linux.setup)