Setup SSH keys
$ cd ~/.ssh $ mkdir key_backup $ cp id_rsa* key_backup $ rm id_rsa* $ ssh-keygen -t rsa -C "email@example.com"
On the GitHub site Click “Account Settings” > Click “SSH Public Keys” > Click “Add another public key”
With custom domain
GitHub Pages allows you to direct a domain name of your choice at your Page.
Let’s say you own the domain name
Start by creating a file named CNAME in the root of your repository. It should contain your domain name like so:
Push this new file up to GitHub. The server will set your pages to be hosted at
Next, you’ll need to visit your domain registrar or DNS host and add a record for your domain name. For a sub-domain like
www.example.com you would simply create a CNAME record pointing at
charlie.github.com. If you are using a top-level domain like example.com, you must use an A record pointing to
188.8.131.52. Do not use a CNAME record with a top-level domain, it can have adverse side effects on other services like email. Many DNS services will let you set a CNAME on a TLD, even though you shouldn’t. Remember that it may take up to a full day for DNS changes to propagate, so be patient.
Real World Example:
The above also works for project & organization pages, of course.
SSH issue with Ubuntu
Check the file permissions on your key. If they are too liberal it may be refusing to use the key. Make sure they only have perssion for you (0700).