LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

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

Rep: Reputation: 0
scp - Host key verification failed.


Quote:
hellbike@hellbike-laptop:~$ sudo scp hellbike@owk.if.uz.zgora.pl:/home/wa.../backup.tar.gz2 localhost:/home/hellbike
[sudo] password for hellbike:
The authenticity of host 'owk.if.uz.zgora.pl (212.109.128.252)' 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 'owk.if.uz.zgora.pl,212.109.128.252' (RSA) to the list of known hosts.
Password:
Host key verification failed.
lost connection
So i did inctruction from this site: http://wiki.archlinux.org/index.php/Using_SSH_Keys

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, 03:03 PM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,012

Rep: Reputation: 367Reputation: 367Reputation: 367Reputation: 367
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:

http://sial.org/howto/openssh/publickey-auth/
http://www.cyberciti.biz/tips/linux-...practices.html
 
Old 05-30-2010, 03:16 AM   #3
Hellbike
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 03:34 AM.
 
  


Reply


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 11:39 AM
can't start sshd. Error is "Generating SSH1 RSA host key [FAILED] ryannlinux Linux - Newbie 9 03-20-2009 03:42 AM
OpenSSH Host Key Verification Failed GodSendDeath Linux - Software 12 01-21-2005 12:28 PM
to 2.6.10 from 2.4.26 | ssh client | Host key verification failed kaN5300 Slackware 6 01-05-2005 10:04 PM
Postfix / Warnings hostname verification failed: Host not found rioguia Linux - Software 2 10-21-2004 02:15 PM


All times are GMT -5. The time now is 02:05 AM.

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