How To Prevent SSH From Prompting When The Host Is Unknown

Published Date Author: , Posted January 26th, 2022 at 1:53:30pm

If you are asked “Are you sure you want to continue connecting (yes/no)?” when trying to connect via SSH, then the remote host’s identification key has not yet been stored in your ~/.ssh/known_hosts file.

This then requires you to type the full string “yes” in order to proceed because the default value for ssh is StrictHostKeyChecking=ask.

To bypass this behavior (not recommended), you may add the -o StrictHostKeyChecking=no option to the command-line, for example:



No comments as yet.

Leave Your Comment  Leave a comment

All fields marked with "*" are required.