-   Linux - Server (
-   -   scp - Host key verification failed. (

Hellbike 05-29-2010 02:35 PM

scp - Host key verification failed.

hellbike@hellbike-laptop:~$ sudo scp localhost:/home/hellbike
[sudo] password for hellbike:
The authenticity of host ' (' can't be established.
RSA key fingerprint is 8a:2f:31:59:df:82:86:b6:96:fe:ff:b0:4a:ae:be:cd.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added ',' (RSA) to the list of known hosts.
Host key verification failed.
lost connection
So i did inctruction from this site:

scp got same error, and when logging using ssh i got:Agent admitted failure to sign using the key.
If on server i set chmod 777 ~/.ssh/ then ssh error wont appear, but scp error is still there.

tredegar 05-29-2010 03:03 PM

Generally, ssh 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 shell.

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:

Hellbike 05-30-2010 03:16 AM

I did everything from this tutorial and i dont have "Agent admitted failure to sign using the key." error anymore.
But still can't use scp! Still got "Host key verification failed." error.
I deleted key from known_hosts and that didn't help either.

All times are GMT -5. The time now is 04:05 PM.