Strict host key checking controls whether SSH requires a remote host key to be trusted before connecting. In a GitHub Actions workflow, disabling it avoids an interactive authenticity prompt that automated jobs cannot answer. section 4.1.5
Configure an automated SSH connection
Create the SSH configuration before connecting to the server: echo "StrictHostKeyChecking=no" > ~/.ssh/config. The workflow can then use ssh to update packages and install NGINX without waiting for user input.
echo "${{ secrets.AKAMAI_INSTANCE_IP_ADDRESS }} $(ssh-keyscan -H ${secrets.AKAMAI_INSTANCE_IP_ADDRESS})" > ~/.ssh/known_hosts
Compare disabling the prompt with adding the server’s hashed host key to ~/.ssh/known_hosts before the connection. section 4.1.5
