开发者

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

开发者 https://www.devze.com 2023-03-06 08:36 出处:网络
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 i
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

精彩评论

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