Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
# copy private key to local machine
scp git@domain:~/path/to/privatekey/git_rsa ~/.ssh/
# setup ssh config file to simplify future connection
vim ~/.ssh/config
# enter the following commands
# this will setup all configurations to connect to the git server
Host private_git_host
HostName yourdomain.com
port 22
User git
IdentityFile ~/.ssh/git_rsa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment