Welcome to the Linux Foundation Forum!

lab 10.1 question

I followed the steps in the lab exercise. However, when I ran scp to copy files, I got error below and it won't accept my root password which I am sure it is correct. Can you please help?
db@db-Bluebird:~$ sudo scp /tmp/transfer-lab/*.log root@localhost:/tmp/receive
[sudo] password for db:
The authenticity of host 'localhost (127.0.0.1)' can't be established.
ED25519 key fingerprint is SHA256:jcH+u5A5hKpFHrjLj7rwzHL0jYcgigZxleYk44pX54k.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? y
Please type 'yes', 'no' or the fingerprint: yes
Warning: Permanently added 'localhost' (ED25519) to the list of known hosts.
root@localhost's password:
Permission denied, please try again.___

Answers

  • lee42x
    lee42x Posts: 380

    In many distro's root is prevented from using ssh. This lab should use regular users, not root. You can test the connection with "ssh root@localhost" which should fail. Use any other regular user and this should work as designed.

Categories

Upcoming Training