Skip to content

Instantly share code, notes, and snippets.

@mwender
Created November 6, 2013 21:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mwender/7344800 to your computer and use it in GitHub Desktop.
Save mwender/7344800 to your computer and use it in GitHub Desktop.
Generate an SSH key for your Rackspace Cloud Site. Replace _REMOTE_REPO_HOST_ with the domain of your remote repo host (e.g. bitbucket.org, github.com, etc). Upload this script somewhere above your web root and run it as a Perl cron. After it runs you'll find `id_rsa.pub` in /.ssh/.
#!/bin/sh
cd .ssh
ssh-keygen -trsa -fid_rsa
ssh-keyscan -t rsa _REMOTE_REPO_HOST_ >> known_hosts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment