问题
I have a git repo set up on my website which can be accessed by ssh, but every time I push some files to the repo I have to type in my password again. Is there a way in which I only have to type my password in once?
回答1:
Yes, you have to put your SSH public key on your server, in the ~/.ssh/authorized_keys file.
You can find your public key on your local machine, in the ~/.ssh/id_rsa.pub file (supposing you are on a Unix system, I don't know the location of this key on Windows).
回答2:
You should look into ssh keys.
Some instructions:
http://pkeck.myweb.uga.edu/ssh/
http://oreilly.com/pub/h/66
来源:https://stackoverflow.com/questions/6034894/ssh-git-without-having-to-type-in-my-password-every-time