You are not logged in.
Pages: 1
The steps are:
1. create a user with useradd
2. try to ssh with a fake password three times to have a Permission denied error
3. set a password to the user
4. retry to ssh with the right password: it should fail no matter what password is set
The new attempts to connect with ssh fail forever afterwards. Is it just me? On two users, I observed the same behavior.
If the password is set before the ssh attempt or if a fake password is not given three times, then ssh works as expected
Last edited by thomasbb (2021-07-21 14:13:31)
Offline
Offline
But a su login works though...
Offline
The lockout only applies to password authentication
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Here I have the opposite issue: the ssh login never works afterwards, but the su login goes well. If I understood the wiki well, it describes the situation where the user is locked out for login but ssh still works
Offline
public key authentication over SSH is still accepted
Do you have a faillock entry and whyt happens when you reset it?
Offline
What I do is:
not initializing a password to the newly created user:
create a user myuser, without setting a password with passwd to this myuser
ssh myuser@localhost
type 3 times a fake string
set a password with passwd
ssh myuser@localhost doesn't work
su myuser works
initializing a password to the newly created user:
create a user myuser, set password with passwd to this myuser
both ssh and su work with the set password
In either case, no key identification.
To summarize, if the password hasn't been set, the ssh command never recovers (or maybe after a timeout). It seems the wiki describes the opposite situation: the user is locked out but ssh still works
Offline
It seems the wiki describes the opposite situation
No. Look at the goddamn faillock list and try to reset it, will you? Please?
Offline
You're still describing the intended behavior.
The faillock is applied depending on context.
SSH results in an RHOST lock:
# faillock
test:
When Type Source Valid
2021-07-21 09:36:45 RHOST ::1 V
2021-07-21 09:36:51 RHOST ::1 V
2021-07-21 09:36:55 RHOST ::1 VWhile the local login results in a TTY lock:
# faillock
test:
When Type Source Valid
2021-07-21 15:34:03 TTY /dev/tty3 V
2021-07-21 15:34:10 TTY /dev/tty3 V
2021-07-21 15:34:17 TTY /dev/tty3 VEdit: Ninja'd
Last edited by schard (2021-07-21 13:36:44)
Inofficial first vice president of the Rust Evangelism Strike Force
Offline
The faillock is applied depending on context.
Of course, my bad... Thank you for giving it a try
Offline
Pages: 1