Don't ask "Are you sure you want to continue connecting"

When rsyncing to an autoscale instance etc., the batch fails when asked that it is the first time, so countermeasures

For .ssh / config settings

StrictHostKeyChecking no

To the settings for the target host

20/01/28 postscript Rsync with user data when starting EC2 did not work When I checked "/var/log/cloud-init-output.log" and "/var/log/cloud-init.log", the following logs were found.

Host key verification failed.
rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(226) [Receiver=3.1.2]

This happens because the execution user at user data startup is root, but it could be solved in the same way

Recommended Posts

Don't ask "Are you sure you want to continue connecting"
Don't write Python if you want to speed it up with Python
Don't you want to say that you made a face recognition program?
Key operations you want to know
Ask you guys! Are you a programmer! !!
A shell script to make sure you don't forget the pipenv shell again
Let's summarize what you want to do.
How to write environment variables that you don't want to put on [GitHub] Python
Ask NAO (Pepper) to tell you the weather
If you want to create a Word Cloud.
When you want to update the chrome driver.
I don't want to take a coding test
I don't want to use -inf with np.log
Do you want me to fix that copy?
When characters and voiced / semi-voiced sound marks are separated and you want to combine them
What to do if you don't want to use Japanese column names when using ortoolpy.logistics_network