scp foo.txt user1@192.168.23.130:.
can succeed, while scp foo.txt root@192.168.23.130:.
always fail, after I input the correct root password as scp requires, it always say: Permission denied, please try again
Why is that? Ubuntu 20.04 LTS server version, with FinalShell3.8.3
another question which may have something common, which is also related with the root user:
Why ssh client always say access denied when I ssh a remote machine with root? I tried with different ssh clients and the results are the same.
root
account is disabled for good reasons. You don't need it. Login as normal user and runsudo su -
to becomeroot
. However, if you still want to enable it, see the linked question: How to enable root login? – pLumo Feb 09 '21 at 08:22