View previous topic :: View next topic |
Author |
Message |
costantino n00b
Joined: 17 Jan 2025 Posts: 7
|
Posted: Mon Jan 20, 2025 8:38 am Post subject: Can't login by ssh |
|
|
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 |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31431 Location: here
|
Posted: Mon Jan 20, 2025 8:51 am Post subject: |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54740 Location: 56N 3W
|
Posted: Mon Jan 20, 2025 10:16 am Post subject: |
|
|
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 |
|
|
costantino n00b
Joined: 17 Jan 2025 Posts: 7
|
Posted: Mon Jan 20, 2025 1:28 pm Post subject: |
|
|
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
It's a strange thing, in another installations (which was less successful ) sshd works with root permissions by default |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 23024
|
Posted: Mon Jan 20, 2025 3:03 pm Post subject: |
|
|
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 |
|
|
|