When using SCP to transfer files in linux, there will always be "192.168.1.1 is not in the trusted hosts file."
How to avoid this problem when using command?
I don't want to install other programs to proceed, I hope it can be presented through scp.
Refer to the man page. I'm including the security section below:
Security: If an ssh_known_hosts file is constructed using ssh-keyscan without verifying the keys, users will be vulnerable to man in the middle attacks. On the other hand, if the security model allows such a risk, ssh-keyscan can help in the detection of tampered keyfiles or man in the middle attacks which have begun after the ssh_known_hosts file was created.