Date: Thu, 30 Aug 2007 20:20:01 +0200 From: Laszlo Nagy <gandalf@shopzeus.com> To: Yuri Pankov <yuri@darklight.org.ru>, freebsd-questions@freebsd.org Subject: Re: ssh2 login with public key - not working Message-ID: <46D70A51.5020700@shopzeus.com> In-Reply-To: <20070830172743.GB46255@darklight.org.ru> References: <46D6EAB4.5060501@shopzeus.com> <46D6ECEA.5090107@crackmonkey.us> <46D6F712.8070905@shopzeus.com> <20070830172743.GB46255@darklight.org.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
> > Have you checked /var/log/auth.log on machine to which you are trying to > connect? > It contains nothing except: Aug 30 13:54:19 box1 sshd[8199]: Accepted publickey for user2 from 81.1.19.245 port 54369 ssh2 Now here is what I did: 1. I deleted user2 with "rmuser user2", but I did not delete its home directory 2. I re-created the user Now it is working! It was so confusing that I tried another thing. Then I tried this with root@box2: rm -fr /root/.ssh cp ~user2/.ssh /root chown -R root:wheel /root/.ssh chmod 700 /root/.ssh chmod 600 /root/.ssh/* chmod 700 /root ssh -l user1 mybox Same problem - not working. Unfortunately, auth.log on box1 only prints a line when it accepts a public key. There are no auth failures because the problem occurs when ssh tries to determine the type of the authentication. Do you have any idea why the recreation of the user solved the problem? And how it is possible that using exactly the same ssh config, the root user cannot login with a public key? (Obviously, I cannot recreate the root user....) Thanks, Laszlo
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46D70A51.5020700>