When i ssh to a machine, sometime i get this error warning and it prompts to say \"yes\" or \"no\". This cause some trouble when running from scripts that automatically ssh
The following steps are used to authenticate yourself to the host
ssh-keygen -f ~/.ssh/id_ecdsa -t ecdsa -b 521
(above uses the recommended encryption technique)
ssh-copy-id -i ~/.ssh/id_ecdsa user@host
N.B the user @ host will be different to you. You will need to type in the password for this server, not the keys password.
ssh user@host
All source information is located here: ssh-keygen