Thursday, December 18, 2014

Linux/Unix - ssh skip host key checkin and Known Hosts file

If you need to automate you remote scripting, like I do and without having being bothered to enter 'Yes' when being prompted to accept the key or with any other prompts you might see.

ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ${user}@${host}

No comments: