I know that there are multiple threads with problems like this, but still i didn't found my answer.
The situation is like this:
I have a local server and a remote server, i did a ssh key swap so i can log on to the remote server with no problems (automatically logging on, no need to enter pass or login).
I've made a script that copies (with SCP) a file FROM the REMOTE server TO the LOCAL server (NOT FROM the LOCAL server to the REMOTE server !!!!)
, and then i get an error like:
Host key verification failed.
A detail you might need to know:
- i can still log on from the LOCAL to the REMOTE server (with no need to fill in login and pass) -> through a script or with the command line (ssh user@host)
Does anyone know the answer for this?