Created
November 6, 2013 21:56
-
-
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/.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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