Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 05-29-2010, 03:35 PM   #1
LQ Newbie
Registered: Mar 2009
Posts: 4

Rep: Reputation: 0
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.
Old 05-29-2010, 04:03 PM   #2
LQ 5k Club
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,063

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
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:
Old 05-30-2010, 04:16 AM   #3
LQ Newbie
Registered: Mar 2009
Posts: 4

Original Poster
Rep: Reputation: 0
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.

Last edited by Hellbike; 05-30-2010 at 04:34 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ssh problem: Host key verification failed redfeet Linux - Server 3 02-11-2010 12:39 PM
can't start sshd. Error is "Generating SSH1 RSA host key [FAILED] ryannlinux Linux - Newbie 9 03-20-2009 04:42 AM
OpenSSH Host Key Verification Failed GodSendDeath Linux - Software 12 01-21-2005 01:28 PM
to 2.6.10 from 2.4.26 | ssh client | Host key verification failed kaN5300 Slackware 6 01-05-2005 11:04 PM
Postfix / Warnings hostname verification failed: Host not found rioguia Linux - Software 2 10-21-2004 03:15 PM

All times are GMT -5. The time now is 10:16 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration