Roman,
I'm curious, when you were attempting to debug this, did you ever login
when prompted for a password? If you did and the client loglevel was set
to 'debug' or higher, you should have seen some messages which would
have indicated that it was an ownership or permissions issue with the
home directory.
As noted by others on the list, sshd does not send diagnostic messages
to an unauthenticated client which might help an attacker. However, once
you have authenticated by some other means (such as password
authentication), the server does send some diagnostic messages to the
client. These messages are not displayed by default, but are displayed
if the loglevel is set to 'debug.'
I'd also like to note that using -vvv generally is overkill. For most
problems, a single -v is sufficient. Using -vvv produces enough output
that it can sometimes make it difficult to spot the relevant messages.
--
Iain Morgan
On Fri, Nov 18, 2011 at 14:05:07 -0600, Dag-Erling Sm??rgrav wrote:
> "Roman B." <
rby...@gmail.com> writes:
> > If attacker has stolen valid key, then trying to log in with this key
> > will give him either a shell or the information that user directory or
> > .ssh is writable (if we assume there was no other problem),
>
> Uh, no. The only thing the attacker knows is that public-key
> authentication with that particular key did not succeed. There are a
> number of reasons why it would fail: there might not be a valid
> authorized_keys file at all, there might be one but the key is not
> listed there, it might be listed but with restrictions (e.g. "from")
> which the client does not satisfy, etc.
>
> DES
> --
> Dag-Erling Sm??rgrav -
d...@des.no
--
Iain Morgan