Skip to content

Instantly share code, notes, and snippets.

@thejohnny
Created December 17, 2009 18:00
Show Gist options
  • Save thejohnny/258912 to your computer and use it in GitHub Desktop.
Save thejohnny/258912 to your computer and use it in GitHub Desktop.
task :add_github_to_known_hosts do
run "ssh [email protected] -o StrictHostKeyChecking=no -o'HostKeyAlgorithms=ssh-rsa' 2&1> /dev/null"
run "ssh [email protected] -o StrictHostKeyChecking=no -o'HostKeyAlgorithms=ssh-dss' 2&1> /dev/null"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment