Firstly ssh to your remote server:
$ ssh username@host
Then create ssh keys:
$ ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/home/your_account/users/.home/.ssh/id_rsa): [provide a filename] <- create a short descriptive filename [ie - github_myproject]<br>Enter passphrase (empty for no passphrase): [password] <- always use a password Enter same passphrase again: [password confirmation] Your identification has been saved in /home/your_account/users/.home/.ssh/github_myproject. Your public key has been saved in /home/your_account/users/.home/.ssh/github_myproject.pub.<br>The key fingerprint is: 46:1b:99:56:77:0b:38:1e:35:92:de:94:58:b4:f3:d4 user@machine
Next, create or edit your config file as follows (create one if you don’t already have one):
$ pico .ssh/config
Add the following line to it:
(Feel free to add as many keys here as you like, one on each line)
Now get your public key and copy to your clipboard, and login to Github, and create a new deploy key:
$ cat /home/your_account/users/.home/.ssh/github_myproject.pub ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAwIuZA6ca9I1E2c6j1lbqvzDpZD2XQ5dRGVjeby1SGX+6 tyjA1zcN9mim9DXOWiX1wyUwnQdNR3qmzJwjlX1riLpXoEutZxRHsvWyeQFsrWM8B5rJk0U0HDEEH+/9 u0SjGZZq0ERZE+L999ZzAYp7voxD7L7zFqp+odqNMpLln4A98JTBI50q5tVBQBbkh8wXHKPI0xLB1N9u7 VCLB8zrR7/SC73/t3XicnhmaaPL8R+9GKyfRtjxAWyRGZiG+A9ZDXgQ9m6kNP2xS3AFi2jRvHfH2tnmy +KD80sn9hwqTIMANVr2FjVloBHmi+FIHeL9qFbdI/4DCJMHt/hEdAw== user@machine
Test that it is working by doing this from your remote server.
$ ssh -vT firstname.lastname@example.org
(It should prompt you to save the ssh key as a known host, and for your password)
If you get permission denied, check your config file.