Openwrt ssh host is not in the trusted host file

"Host ‘’ is not in the trusted hosts file.", "Do you want to continue connected? (y/n) ”
My question is how to use ssh connection without asking whether to connect.
That I used method is "ssh -o StrictHostKeyChecking=no"
Unfortunately, it didn't work.
My own automated script needs to use ssh connection, please help me.

1 Like

Is there a way to do it without installing other tool?

Create a SSH key pair between client and server to to eliminate the need for passwords when using automatized scripts which tunnel over SSH (ie. RSYNC, SCP, etc.)

If your server changed IP addresses, you need to remove any previous entries in the .ssh/known_hosts file

ssh -y ...

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.