Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
sshd UsePAM no - what I am missing out?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
krotuss
Apprentice
Apprentice


Joined: 01 Aug 2008
Posts: 221

PostPosted: Fri Jan 05, 2024 10:20 pm    Post subject: sshd UsePAM no - what I am missing out? Reply with quote

Hi, recently I've got locked out out of my raspberry pi because PAM broke. This got me thinking about usefulness of default PAM config with sshd with pub key authentication. Which modules make sense to use with sshd? For example does tally2 still work with sshd with pubkey?
Back to top
View user's profile Send private message
szatox
Advocate
Advocate


Joined: 27 Aug 2013
Posts: 3172

PostPosted: Sat Jan 06, 2024 1:18 am    Post subject: Reply with quote

It's not very useful. Sshd does key authentication internally anyway, no modules needed. I actually removed it completely from my vps.
Actually, looking at my sshd_config, I suppose this file could probably be left empty and sshd would still work... It would allow password authentication though, which I completely disabled.

Quote:
For example does tally2 still work with sshd with pubkey?
Probably not. Fail2ban does exist though, if you need it, and are willing to learn how to use it.
I find gentoo configs of a bunch of those internet tools quite confusing (like apache... I can see its config has some ties to emerge, but It's easier to scrap it and do it myself than reverse-engineer the provided template)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum