Hi,
I have an automated setup (debian) which includes a startup script that rsyncs to a server (always the same server). Everything works well - just that I have to manually confirm that the host is supposed to be added to the known_hosts
Code:
The authenticity of host 'myserver.com (xx.xx.xx.xx)' can't be established.
RSA key fingerprint is 9b:ee:a6:47:hb:92:ac:76:81:94:18:7d:ad:8c:3e:25.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'myserver.com,xx.xx.xx.xx' (RSA) to the list of known hosts.
It is pretty bothersome having to log in to my box just to accept the connection - having the host added automatically (preseed, script) would be nice.
Tried the bold approach editing the ~/.ssh/known-hosts file but without luck as entry seems to be differen for every host. (probably signed)
I would have to fall to "expect" but this is a pretty nasty way to do it. There might be better ways to do it.
Thank you for you creative input...