is configured not
to allow root logins. There are very good reasons for this.
So you should not be using sudo scp ...
The permissions on your ~/.ssh/
directory must not
be set as 777 because this reduces your security to "no security at all".
You need to learn that ssh
is the secure
As such, it will refuse
to work if it thinks your configuration is not secure. This is the correct behaviour for a properly crafted security tool: "If I am not set up correctly, then do not work, because otherwise users might think
they are secure, but they are not, because ssh
is not set up properly".
There are many HOWTOs on the internet, but try these for a start: