-   Linux - Security (
-   -   ssh host authentication (

bujecas 06-21-2006 09:47 AM

ssh host authentication

I want to copy some files from a server to a client machine. For that I use public/private key auhtentication and scp. For a automated process (running in a cronjob) it must not have interactivity. My problem is when the client contacts the server for the first and the host authentication question is shown. Is there any way to force that question not to be shown?


tredegar 06-21-2006 11:41 AM

I am not sure what you mean by "host authentication question is shown".
Perhaps it is asking for the passphrase?
When I generate my public/private keys, I do not enter any passphrase (just press <RETURN>), so I do not get asked for the passphrase, and login is automatic.
Try regenerating your keys without a passphrase.


Hobbletoe 06-21-2006 12:57 PM

Once you answer the host authentication question once, that host should be written to your ~/.ssh/known_hosts file. You shouldn't have to answer again after that.

bujecas 06-22-2006 09:06 AM

Solved with "StrictHostKeyChecking no" in the ~/.ssh/config.
The problem was the first time it tries to connect to server, the known_hosts at that time doesn't have anything, so it ask if I want to add it, that was the problem.

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