These instructions rely on having git, tortoise git with bash and putty generator installed.
Log into your server with root account using SSH (putty)
REMOTE: Make a directory to store all your ssh keys (only needs to be done once)
cd /root
mkdir .ssh
LOCAL: Generate a key for your local computer, start -> run -> bash
ssh-keygen -t rsa -b 2048 -f ~/.ssh/id_rsa -C “Enter an optional comment about your key”
enter a strong passphrase (password, empty for no pass but not recomended)
LOCAL: Upload your public key to the server
cat ~/.ssh/id_rsa.pub | ssh root@example.com ‘cat – >> ~/.ssh/authorized_keys’
REMOTE: Set Permissions for the newly created directory and auth keys file
chmod 600 ~/.ssh/authorized_keys && chmod 700 ~/.ssh/
LOCAL:
From here you need to either start a new Clone or open an existing remote path in tortoise git settings.
These instructions rely on having git, tortoise git with bash and putty generator installed.
LOCAL: Generate a key for your local computer, start -> run -> bash
ssh-keygen -t rsa -b 2048 -f ~/.ssh/id_rsa -C “Enter an optional comment about your key”
enter a strong passphrase (password, empty for no pass but not recomended)
LOCAL:
From here you need to either start a new Clone or open an existing remote path in tortoise git settings.
Resources:
http://kb.mediatemple.net/questions/1626/Using+SSH+keys+on+your+server
http://andremolnar.com/how_to_set_up_ssh_keys_with_putty_and_not_get_server_refused_our_key
http://www.syntevo.com/smartgit/index.html