Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't login by ssh
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
costantino
n00b
n00b


Joined: 17 Jan 2025
Posts: 7

PostPosted: Mon Jan 20, 2025 8:38 am    Post subject: Can't login by ssh Reply with quote

Hi, All

I installed fresh version of Gentoo, but can't login using ssh.
login by console is OK, with simples pass, like "1" or quite complex, like "blah-blah-Blah-123-098-", etc

when I use right pass, loging by ssh, on gentoo console appears
<my hostname> login: unix_chkpwd[1661]: password check failed for user (root)
and password is definitely right)))

what's wrong?
installation is quite clean, above "handbook install" installed only midnight commander
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31431
Location: here

PostPosted: Mon Jan 20, 2025 8:51 am    Post subject: Reply with quote

By default sshd is configured for deny the login from root.
You should enable this feature in /etc/ssh/sshd_config by adding line PermitRootLogin yes.
For security reasons, it would be better not to activate it.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54740
Location: 56N 3W

PostPosted: Mon Jan 20, 2025 10:16 am    Post subject: Reply with quote

costantino,

Using ssh as root with a password is a very bad thing in general, so it's disabled by default.
Key based login will work.

If you want root logins with password, fix the config file and restart sshd.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
costantino
n00b
n00b


Joined: 17 Jan 2025
Posts: 7

PostPosted: Mon Jan 20, 2025 1:28 pm    Post subject: Reply with quote

fedeliallalinea, Yes! thks!

NeddySeagoon, thks
I am familiar with the principles of security. but now system is in building/debugging/tuning state, completely isolated, and I need comfort access to it. in future it will be pbx for small summer house :roll:


It's a strange thing, in another installations (which was less successful :oops: ) sshd works with root permissions by default :?
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23024

PostPosted: Mon Jan 20, 2025 3:03 pm    Post subject: Reply with quote

Since you ought to use key-based authentication eventually, I suggest setting that up now. That will let you determine whether the problem is that root logins are completely disabled (and have a strange error message) or if there is a problem with the path that verifies your password.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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