I get a problem with deploying build results to azure, I get the following error:
The authenticity of host ‘xxx (184.108.40.206)’ can’t be established.
ECDSA key fingerprint is b4:06:c4:fd:36:5c:6e:f6:a4:61:43:02:a6:fd:d7:b9.
Are you sure you want to continue connecting (yes/no)?
I checked similar problems here and tried to add public ssh key to “known_hosts” according to the advices:
i.e.added a “step” in the “deploy” job, tried two different ways:
run: ssh-keyscan 220.127.116.11 >> ~/.ssh/known_hosts
run: echo ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAA (...) BAQCT2K3RJXzbsP >> ~/.ssh/known_hosts
But it did not help, I get the same error so it seems like docker image do not get this key anyway.
I have added an ssh key (no passphrase) to my project settings in circle ci, it is a valid key since I can establish ssh session with azure server with this ssh key on my computer. Ip-adress is correct too.
My whole config looks like this:
I wish this proposal would be implemented one day - add command “ssh_known_hosts” like you can do in travis ci.
And what about security - do I need to open SSH port (22) to the whole internet in order to use run “scp” command from the circle ci image?
The best way would be allow access only from circle ci servers by adding those ip-addresses, but it is not possible accodring to this:
Any help appreciated!