Allow root SSH login with password” does not work

I can’t access AlmaLinux 9.4 via SFTP using “root” with PUTTY or WINSCP. I followed all the suggestions found here on the forum and none of them worked. Could someone give me a way that works?

Thanks!

Just in case we don’t know “all” things on this forum, what did you do, exactly?
What is in directory /etc/ssh/sshd_config.d/ ?

[root@server ~]# grep -r Root /etc/ssh
[root@server ~]# sshd -T | grep root

Is the limit only on SFTP, or also with PuTTY session?
(Windows should have command ‘ssh’ too, on Command Prompt.)

Are the files/directories that you want accessible only by root?

The PuTTY can use SSH keypair for authentication – use of password is not preferred, even for regular accounts.

I think during the installation and configuration of root there is an option that you can enable / disable to allow root to directly use ssh.
For security this option is disabled by default.

as mentioned by @jlehtone the contents of the ssh config file help to find out the problem.

Can you login on an non root account with SSH or SCP ?

It is not secure and I have not tried it but WinSCP has an option to use sudo to get ROOT rights on a session. Unfortunately only without a password.

Thank you, I managed to solve the problem.

1 Like

Great. Would you like to share how?