Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
keyboard-interactive: What does it mean
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Wolfgang Meiners  
View profile  
 More options Aug 12 2009, 5:27 am
Newsgroups: comp.security.ssh
From: Wolfgang Meiners <WolfgangMeiner...@web.de>
Date: Wed, 12 Aug 2009 11:27:01 +0200
Local: Wed, Aug 12 2009 5:27 am
Subject: keyboard-interactive: What does it mean
I am using openssh as server and client on my boxes. In
/etc/ssh/sshd_config i set

#PubkeyAuthentication yes
PasswordAuthentication no
#KerberosAuthentication no
#GSSAPIAuthentication no
#ChallengeResponseAuthentication yes
#UsePAM no

where the commented options are default. When i try to connect without
key, i get the message

Permission denied (publickey, keyboard-interactive)

I read, keyboard-interactive could be any authentication method, for
example password, Pubkey or PAM. But it seems not to work. Is this
related to the ssh-client or to the ssh-server?

I thought, it would be better to have

ChallengeResponseAuthentication no

in my /etc/ssh/sshd_config, because this should be more secure. Is this
the case? But then, why is the default to have
ChallengeResponseAuthentication?

Thank you for any information.

Wolfgang


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dag-Erling Smørgrav  
View profile  
 More options Aug 13 2009, 9:13 pm
Newsgroups: comp.security.ssh
From: Dag-Erling Smørgrav <d...@des.no>
Date: Fri, 14 Aug 2009 03:13:40 +0200
Local: Thurs, Aug 13 2009 9:13 pm
Subject: Re: keyboard-interactive: What does it mean

Wolfgang Meiners <WolfgangMeiner...@web.de> writes:
> I thought, it would be better to have

> ChallengeResponseAuthentication no

> in my /etc/ssh/sshd_config, because this should be more secure.

Why?

> Is this the case?

No.

DES
--
Dag-Erling Smørgrav - d...@des.no


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Wolfgang Meiners  
View profile  
 More options Aug 14 2009, 11:25 am
Newsgroups: comp.security.ssh
From: Wolfgang Meiners <WolfgangMeiner...@web.de>
Date: Fri, 14 Aug 2009 17:25:56 +0200
Local: Fri, Aug 14 2009 11:25 am
Subject: Re: keyboard-interactive: What does it mean
Dag-Erling Smørgrav schrieb:

> Wolfgang Meiners <WolfgangMeiner...@web.de> writes:
>> I thought, it would be better to have

>> ChallengeResponseAuthentication no

>> in my /etc/ssh/sshd_config, because this should be more secure.

> Why?

Simple answer: I found (publickkey, keyboard-interactive) as possible
authentication methods. Since i disabled
ChallengeResponseAuthentication, it is only (publickkey). Somewhere i
read keyboard-interactive could be password authentication or some other
method and i did not find much information on how it works exactly.

>> Is this the case?

> No.

> DES

So why is ChallengeResponseAuthentication set to yes by default when it
does nothing?

Where can i find more information on PAM, Challenge/Response, S/Key for
linux?

Wolfgang


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dag-Erling Smørgrav  
View profile  
 More options Aug 18 2009, 9:32 pm
Newsgroups: comp.security.ssh
From: Dag-Erling Smørgrav <d...@des.no>
Date: Wed, 19 Aug 2009 03:32:55 +0200
Local: Tues, Aug 18 2009 9:32 pm
Subject: Re: keyboard-interactive: What does it mean

Wolfgang Meiners <WolfgangMeiner...@web.de> writes:
> Dag-Erling Smørgrav <d...@des.no> writes:
> > Wolfgang Meiners <WolfgangMeiner...@web.de> writes:
> > > I thought, it would be better to have

> > > ChallengeResponseAuthentication no

> > > in my /etc/ssh/sshd_config, because this should be more secure.
> > Why?
> Simple answer: I found (publickkey, keyboard-interactive) as possible
> authentication methods. Since i disabled
> ChallengeResponseAuthentication, it is only (publickkey). Somewhere i
> read keyboard-interactive could be password authentication or some
> other method and i did not find much information on how it works
> exactly.

ChallengeResponseAuthentication is the configuration variable that
controls what the protocol calls keyboard-interactive authentication,
which is the preferred method for most if not all SSHv2 implementations.

The SSH protocol has a number of features which are either optional or
for which there are several possible choices: authentication method,
encryption algorithm, etc.  The client and server each transmit a ranked
list of methods and algorithms that each will accept, figure out which
ones they have in common, and settle on the highest-ranked of those.

In its default configuration, an OpenSSH server will accept publickey
and keyboard-interactive, while a client will accept publickey,
keyboard-interactive and password.  If you disable keyboard-interactive
at either end, the only method the client and server will have in common
is publickey, which will fail unless the client has a public key which
the server will accept.

Keyboard-interactive simply means that the server sends prompts to the
client, which displays them and sends back the user's answers.  These
exchange can continue for as long as the server wants.

Password is an older method, inherited from SSHv1, in which the client
asks the user for a password and sends it to the server, which can
either reject it any number of times or accept it.  The password method
does not allow the server to transmit a specific prompt, which makes it
unsuitable for challenge-response authentication methods such as S/Key
(or its open source counterpart OPIE), PKCS/11 or similar.

> > > is this the case?
> > No.
> So why is ChallengeResponseAuthentication set to yes by default when it
> does nothing?

Who said it did nothing?  I certainly didn't.

> Where can i find more information on PAM, Challenge/Response, S/Key
> for linux?

Most Linux implementations use Linux-PAM.  There is probably some sort
of documentation for it floating around somewhere on the net.

FreeBSD and NetBSD use OpenPAM, which I wrote (as well as OpenSSH's PAM
support).  It is extensively documented in man pages which you can find
here:

http://www.freebsd.org/cgi/man.cgi?query=pam&apropos=1&format=html

DES
--
Dag-Erling Smørgrav - d...@des.no


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Wolfgang Meiners  
View profile  
 More options Aug 19 2009, 4:57 pm
Newsgroups: comp.security.ssh
From: Wolfgang Meiners <WolfgangMeiner...@web.de>
Date: Wed, 19 Aug 2009 22:57:50 +0200
Local: Wed, Aug 19 2009 4:57 pm
Subject: Re: keyboard-interactive: What does it mean

Dag-Erling Smørgrav writes:
> Wolfgang Meiners <WolfgangMeiner...@web.de> writes:
>> Dag-Erling Smørgrav <d...@des.no> writes:
>>> Wolfgang Meiners <WolfgangMeiner...@web.de> writes:

>>>> is this the case?
>>> No.
>> So why is ChallengeResponseAuthentication set to yes by default when it
>> does nothing?

> Who said it did nothing?  I certainly didn't.

Surely not. I concluded it from the default sshd_config, i found on my
system. There i found the following lines:

#RSAAuthentication yes
#PubkeyAuthentication yes
#AuthorizedKeysFile     .ssh/authorized_keys

#PasswordAuthentication yes
#PermitEmptyPasswords no

#ChallengeResponseAuthentication yes

#UsePAM no

When i understand this right, i can by default authenticate
-by Pubkey,
-by Password,
but not by KeyboardInteractive, because this would need the line
UsePAM yes

So, when this is correct, then -i think- ChallangeResponseAuthentication
ist set to yes but does nothing. Am i wrong?

But let me thank you for a lot of interesting information. I think, i
will have to read a lot to get a deeper understandig of ssh authentication.

Wolfgang


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dag-Erling Smørgrav  
View profile  
 More options Aug 20 2009, 3:30 pm
Newsgroups: comp.security.ssh
From: Dag-Erling Smørgrav <d...@des.no>
Date: Thu, 20 Aug 2009 21:30:11 +0200
Local: Thurs, Aug 20 2009 3:30 pm
Subject: Re: keyboard-interactive: What does it mean

Wolfgang Meiners <WolfgangMeiner...@web.de> writes:
> Dag-Erling Smørgrav <d...@des.no> writes:
> > Wolfgang Meiners <WolfgangMeiner...@web.de> writes:
> > > So why is ChallengeResponseAuthentication set to yes by default
> > > when it does nothing?
> > Who said it did nothing?  I certainly didn't.
> Surely not. I concluded it from the default sshd_config, i found on my
> system. There i found the following lines:
> [...]
> When i understand this right, i can by default authenticate
> -by Pubkey,

Correct.

> -by Password,

Correct.

> but not by KeyboardInteractive, because this would need the line
> UsePAM yes

Wrong.

> So, when this is correct, then -i think- ChallangeResponseAuthentication
> ist set to yes but does nothing. Am i wrong?

Yes.

Go back and read what I wrote yesterday.

DES
--
Dag-Erling Smørgrav - d...@des.no


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Wolfgang Meiners  
View profile  
 More options Aug 20 2009, 5:12 pm
Newsgroups: comp.security.ssh
From: Wolfgang Meiners <WolfgangMeiner...@web.de>
Date: Thu, 20 Aug 2009 23:12:13 +0200
Local: Thurs, Aug 20 2009 5:12 pm
Subject: Re: keyboard-interactive: What does it mean

I think this is an really important point and i dont understand it. So i
 tried it out:
Server: ubuntu 9.04, OpenSSH_5.1p1 Debian-5ubuntu1, OpenSSL 0.9.8g 19
Oct 2007
Client: OSX 10.4.11, OpenSSH_5.1p1, OpenSSL 0.9.7l 28 Sep 2006

in ubuntu:/etc/ssh/sshd_config i set

PubkeyAuthentication yes
PasswordAuthentication no
ChallengeResponsAuthentication yes
UsePAM yes

and restarted sshd. Then, on the client i type

pbook:~ adminloc$ ssh wolfgang@ubuntu
Password:
wolfgang@ubuntu:~$

So i can authenticate by Password. In my opinion this password is
handled by ChallengeResponse and PAM.

Next i set
PubkeyAuthentication yes
PasswordAuthentication no
ChallengeResponsAuthentication no
UsePAM yes

and restarted the server. Then i found
pbook:~ adminloc$ ssh wolfgang@ubuntu
Permission denied (publickey).
pbook:~ adminloc$

So i can not authenticate by Password as i expected. As the next step, i set
PubkeyAuthentication yes
PasswordAuthentication no
ChallengeResponsAuthentication yes
UsePAM no

with the result
pbook:~ adminloc$ ssh wolfgang@ubuntu
Permission denied (publickey,keyboard-interactive).

now, ssh says keyboard-interactive is a possible authentication method
but it does not ask me a password because there is no way to handle it.
Is there some possibility in this situation, to connect to this sshd
without publickey? How would i do this?

I am not sure, where i misunderstand you. And i am not sure, wether
there is security risk in my setup.

Wolfgang


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dag-Erling Smørgrav  
View profile  
 More options Aug 20 2009, 6:57 pm
Newsgroups: comp.security.ssh
From: Dag-Erling Smørgrav <d...@des.no>
Date: Fri, 21 Aug 2009 00:57:04 +0200
Local: Thurs, Aug 20 2009 6:57 pm
Subject: Re: keyboard-interactive: What does it mean

Quite probable.

> Next i set
> PubkeyAuthentication yes
> PasswordAuthentication no
> ChallengeResponsAuthentication no
> UsePAM yes

> and restarted the server. Then i found
> pbook:~ adminloc$ ssh wolfgang@ubuntu
> Permission denied (publickey).
> pbook:~ adminloc$

> So i can not authenticate by Password as i expected.

Correct.

> As the next step, i set
> PubkeyAuthentication yes
> PasswordAuthentication no
> ChallengeResponsAuthentication yes
> UsePAM no

> with the result
> pbook:~ adminloc$ ssh wolfgang@ubuntu
> Permission denied (publickey,keyboard-interactive).

That's what I would expect.

> now, ssh says keyboard-interactive is a possible authentication method
> but it does not ask me a password because there is no way to handle
> it.

The keyboard-interactive method is not about passwords, it is about
asking a questions (challenge) and getting the right answer (response).
It just so happens that the question is usually "Password:", but it
might as well be "otp-md5 491 wi01309 ext".

When you've disabled PAM, OpenSSH doesn't ask you for anything because
it doesn't know what to ask for.  It still goes through the motions -
basically, the client says "let's do keyboard-interactive" and the
server answers "you failed".

> Is there some possibility in this situation, to connect to this sshd
> without publickey? How would i do this?

No.

> I am not sure, where i misunderstand you. And i am not sure, wether
> there is security risk in my setup.

I don't understand why you're spending so much energy trying to look for
one in your OpenSSH configuration.

DES
--
Dag-Erling Smørgrav - d...@des.no


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Wolfgang Meiners  
View profile  
 More options Aug 21 2009, 4:46 pm
Newsgroups: comp.security.ssh
From: Wolfgang Meiners <WolfgangMeiner...@web.de>
Date: Fri, 21 Aug 2009 22:46:46 +0200
Local: Fri, Aug 21 2009 4:46 pm
Subject: Re: keyboard-interactive: What does it mean

Dag-Erling Smørgrav writes:
> Wolfgang Meiners <WolfgangMeiner...@web.de> writes:

>> Is there some possibility in this situation, to connect to this sshd
>> without publickey? How would i do this?

> No.

That is what i thought but i was not sure about it.

>> I am not sure, where i misunderstand you. And i am not sure, wether
>> there is security risk in my setup.

> I don't understand why you're spending so much energy trying to look for
> one in your OpenSSH configuration.

Maybe because you know to much about security? In my first ssh setup i
disabled PasswordAuthentication, generated a keypair and connected by
PublickeyAuthentication. I only discoverd accidently that authentication
with password was still possible and this was due to UsePAM, which was
enabled. In my last ssh setup, i disabled UsePAM and
PasswordAuthentication and discovered accidently, that authentication
methods are (publickey, keyboard-interactive). So from my understandig,
it could have been possible to connect via keyboard-interactive - maybe
with some kind of manipulated ssh client.

I know, there are brute force ssh attacks every time and i am not sure,
that all accounts on my system have secure passwords. That's the main
reason for me to disable PasswordAuthentication and UsePAM.

I think, when i want to use one time passwords on a linux system, i will
have to enable UsePAM and to configure PAM in a way, that one time
password authentication is possible and password authentication is not.

Wolfgang


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »