Created
March 16, 2017 14:02
-
-
Save xiangjjj/80a1bc7d3827a6e891236f896fc7b8be to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# 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