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 )


Submit an answer

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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.