The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

scp Host key verification failed

Discussion in 'General Discussion' started by so__, Apr 5, 2017.

  1. so__

    so__ Registered

    Joined:
    Apr 5, 2017
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    a
    cPanel Access Level:
    Website Owner
    Hello everyone, I am trying to address the following problem (noob level).

    I want to send a compressed directory from my server to another server by using scp.

    I have created my public/private keys through the security service (ssh access), I have made the public key authorized, then I have copied the public key to the destination server.

    However, when I run my bash script where I have the command:

    scp mydir.tar me@scp.destserver.com:destdit/

    I come up with this error:

    Host key verification failed.
    lost connection


    Any suggestion?
    Thank you in advance.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,175
    Likes Received:
    1,295
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page