When we use ssh to connect to the host for the first time, a fingerprint confirmation of the host key will be displayed.
Sometimes use rsync for some automated scheduling, maybe the remote host has changed and needs to be automatically allowed,
How to let ssh automatically allow fingerprints to connect without manually pressing yes in interactive mode?
The following example is to copy data from my computer to test-server, so the specified key is test-server.pem
The following is the Sample, when no parameters are added.. -oStrictHostKeyChecking=no
You can see that in the screen above you will be asked if you want to continue, here I answer "No".
Then, we have the same command, if we add -oStrictHostKeyChecking=no
There will be no yes/no pop-up, and the synchronization can be completed directly.
No Comment
Post your comment