Re: Too many authentication failures



"PH" == phil-news-nospam <phil-news-nospam@xxxxxxxx> writes:

PH> On Sun, 27 Jan 2008 09:31:08 +1100 Darren Tucker <dtucker@xxxxxxxxxxxxxxxx> wrote:
PH> | On 2008-01-25, phil-news-nospam@xxxxxxxx <phil-news-nospam@xxxxxxxx> wrote:
PH> |> On Fri, 25 Jan 2008 10:28:08 +1100 Darren Tucker <dtucker@xxxxxxxxxxxxxxxx> wrote:
PH> |>| On 2008-01-19, phil-news-nospam@xxxxxxxx <phil-news-nospam@xxxxxxxx> wrote:
PH> |>|> On Fri, 18 Jan 2008 23:24:44 GMT Darren Dunham <ddunham@xxxxxxxx> wrote:
PH> |>| [...] |>|>| So I would assume setting
PH> PreferredAuthentications to |>|>| 'keyboard-interactive,password'
PH> for that host will not attempt to send |>|>| keybased identities.
PH> |>|>
PH> |>|> Don't assume that. I never saw that feature. I can see it
PH> now since I |>|> know what name to look for from your post. It
PH> certainly wasn't the logic |>|> I was looking for. I was always
PH> grepping for "identity" or "identities" |>|> since that was
PH> clearly the thing getting in the way :-( But this makes |>|>
PH> sense. I'll try it when I get back to work on Monday. Thanks.
PH> |>|
PH> |>| Try IdentityFile and IdentitiesOnly together in ssh_config.
PH> |>
PH> |> That wouldn't achieve my goal, since it would turn password off
PH> entirely. |> What I wanted was fewer identities for certain hosts
PH> so that a password |> could be tried before the remote decided too
PH> many tries had been made.
PH> |
PH> | Did you try it? Unless I'm misunderstanding what you're trying
PH> to do, | it does exactly what you're asking for. It doesn't turn
PH> of password | authentication.

PH> If it doesn't cause ssh to use only identities, then it isn't
PH> doing what it's name clearly implies. And from what I read in
PH> (man ssh_config) it would use only identities as configured.
PH> Based on that, there would be no reason to try it, any more than
PH> any other randomly chosen option.

Unfortunately, the name is suggestive of more than one interpretation.
You are thinking that "identities only" means that it will only use
publickey authentication. Understandable given what you're looking for,
but that is not what this says:

IdentitiesOnly
Specifies that ssh(1) should only use the authentication identity
files configured in the ssh_config files, even if ssh-agent(1)
offers more identities. The argument to this keyword must be
``yes'' or ``no''. This option is intended for situations where
ssh-agent offers many different identities. The default is
``no''.

This means that, *during publickey authentication*, it will only use
identity files, and not keys available from the agent. It says nothing
about what authentication methods will be used; that is controlled
separately, as Darren indicated.

PH> --
PH> |---------------------------------------/----------------------------------|
PH> | Phil Howard KA9WGN (ka9wgn.ham.org) / Do not send to the address
PH> below | | first name lower case at ipal.net /
PH> spamtrap-2008-01-26-1831@xxxxxxxx |
PH> |------------------------------------/-------------------------------------|

--
Richard Silverman
res@xxxxxxxx

.



Relevant Pages

  • Re: Too many authentication failures
    ... If it doesn't cause ssh to use only identities, ... IdentitiesOnly causes ssh to use only the specified ... public keys during public-key authentication (normally, ...
    (comp.security.ssh)
  • Re: Getting username
    ... There are three identities that may be of interest: ... Depending on the exact details of your ... authentication and impersonation scheme, one or more of these may contain ... > An ASP.NET page uses Windows authentication method for the user log in. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Too many authentication failures
    ... with the identities. ... What my thinking was is that when I specify them, ... list under a section for just a host, ... narrow focus. ...
    (comp.security.ssh)
  • Re: Too many authentication failures
    ... |>| 'keyboard-interactive,password' for that host will not attempt to send ... What I wanted was fewer identities for certain hosts so that a password ... this particular string ie encountered in the list of identities, ...
    (comp.security.ssh)
  • Re: Too many authentication failures
    ... |>| 'keyboard-interactive,password' for that host will not attempt to send ... since it would turn password off entirely. ... What I wanted was fewer identities for certain hosts so that a password ... Good judgement comes with experience. ...
    (comp.security.ssh)