I run the following as a dev user (I got access to root):
sudo scp nfs1:/root/app.beta-3.tar.gz /tmp/
Then it said:
The authenticity of host 'nfs1 (172.16.xx.xxx)' can't be established. ED25519 key fingerprint is SHA256:my-key-here. This host key is known by the following other names/addresses: ~/.ssh/known_hosts:5: [hashed name] ~/.ssh/known_hosts:8: [hashed name] Are you sure you want to continue connecting (yes/no/[fingerprint])?
So If I type yes, it says
Warning: Permanently added 'nfs1' (ED25519) to the list of known hosts. Enter passphrase for key '/root/.ssh/id_ed25519':
Then it works. However, I don’t get this kind of warning or message if I run command directly as the root:
$ sudo -i
# scp nfs1:/root/app.beta-3.tar.gz /tmp/
Any idea why? How to prevent this? How can I verify nothing bad happening as this is related to root key that is used to replicate files across all cluster server. The guy is in-charge won’t be coming to our office any time soon. I will see him Jan/2025 only. So I need to make sure nothing stupid happen on my part.