开发者

SSH Git without having to type in my password every time [duplicate]

This question already has answers here: Closed 11 years ago.

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开发者_StackOverflow中文版 have to type my password in once?


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).


You should look into ssh keys.

Some instructions:

http://pkeck.myweb.uga.edu/ssh/

http://oreilly.com/pub/h/66

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜