Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am trying to copy data from one server to another server in Linux Debian using this command in Putty :

 scp -r khader@xx.xxx.xxx.xxx:/home/khader/backup/ khader@yy.yyy.yyy.yyy:/home/khader/

It is asking for password

khader@xx.xxx.xxx.xxx's password:

When I type the password, it says

Host key verification failed.
lost connection

Any idea what could be the problem ?

share|improve this question

migrated from stackoverflow.com Apr 27 '12 at 7:10

This question came from our site for professional and enthusiast programmers.

1  
Enabling verbose mode (-v option) is a good start point to debug such issues. –  Nicolas Martin Apr 27 '12 at 6:46
    
Thanks for all who viewed my post. The issue has been solved. I used this command : scp /local_directory/local_file username@hostname_or_IP_address:~/remote_directory –  alkhader Apr 27 '12 at 6:46

1 Answer 1

up vote 0 down vote accepted

As mentioned in comment:

Used this command

 scp /local_directory/local_file username@hostname_or_IP_address:~/remote_directory
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.