Question

should I use another key pair to connect under root

I have a simple bash script to get files from my droplet like this: scp -r root@xx.xxx.xxx.xxx:/var/source_folder/ /home/user/destination_folder It’s ok when i just run script, it works. But if I run it’s under root I’ve get: The authenticity of host ‘xx.xxx.xxx.xxx (xx.xxx.xxx.xxx)’ can’t be established. ECDSA key fingerprint is SHA256:XXxxXxXXx… Are you sure you want to continue connecting (yes/no)? So I’m curious, is it an expected behavior and I should setup another key pair, or I’m doing something wrong. Thanks )

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi @Shipin16Shark,

The authenticity of host ‘xx.xxx.xxx.xxx (xx.xxx.xxx.xxx)’ can’t be established.
ECDSA key fingerprint is SHA256:XXxxXxXXx....

This just means you haven’t added the host under the known_hosts file, in your .ssh folder using the user root. It’s no biggie. If you accept it once, this host with user root will be added to known_hosts and you won’t be experiencing the same messages.