Discussion:
HowTo Force a passwd and an idstring
(too old to reply)
Ian
2017-04-07 13:33:19 UTC
Permalink
Hi All,

I've got a test machine set up, using openssh internal-sftp.
I've got a user which must use a passwd to authenticate.
I've got a user which must use an identity string to authenticate.

How can I set up a user which must have both a passwd and an identity
string to authenticate? Just to be clear, that's "and" not "or" i.e. for
a user to connect he must supply both the correct passwd and a known
identity string.

Thanks.
Ian
2017-04-07 13:51:39 UTC
Permalink
Post by Ian
Hi All,
I've got a test machine set up, using openssh internal-sftp.
I've got a user which must use a passwd to authenticate.
I've got a user which must use an identity string to authenticate.
How can I set up a user which must have both a passwd and an identity
string to authenticate? Just to be clear, that's "and" not "or" i.e. for
a user to connect he must supply both the correct passwd and a known
identity string.
Thanks.
I've had a look at the linux.de man page for sshd_config and it says
"RequiredAuthentications2 publickey,password"

which looks to be what I need.

However, when I add this to my sshd_config, sshd refuses to start, saying:
/etc/ssh/sshd_config: line 91: Bad configuration option:
RequiredAuthentications2
/etc/ssh/sshd_config: terminating, 1 bad configuration options

Is this something which was introduced in a new version? I'm running
ubuntu 16.04
OpenSSH_7.2p2
SSL 1.0.2.g March 2016
Ian
2017-04-07 14:10:25 UTC
Permalink
Post by Ian
Post by Ian
Hi All,
I've got a test machine set up, using openssh internal-sftp.
I've got a user which must use a passwd to authenticate.
I've got a user which must use an identity string to authenticate.
How can I set up a user which must have both a passwd and an identity
string to authenticate? Just to be clear, that's "and" not "or" i.e. for
a user to connect he must supply both the correct passwd and a known
identity string.
Thanks.
I've had a look at the linux.de man page for sshd_config and it says
"RequiredAuthentications2 publickey,password"
which looks to be what I need.
RequiredAuthentications2
/etc/ssh/sshd_config: terminating, 1 bad configuration options
Is this something which was introduced in a new version? I'm running
ubuntu 16.04
OpenSSH_7.2p2
SSL 1.0.2.g March 2016
I found it, I think:
AuthenticationMethods

Loading...