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 email@example.com:/var/sourcefolder/ /home/user/destinationfolder
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.
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.×