git - Avoid re-entering password for each submodule -


i have repo 3 submodules. repo , submodules on same server, have ssh access to. remote urls are:

ssh://matt@theserver.com/path/to/sub1.git ssh://matt@theserver.com/path/to/sub2.git ssh://matt@theserver.com/path/to/sub3.git 

if operation such git submodule update --remote prompts password 3 times.

is there way update submodules require password once? same goes committing changes etc.

one solution might adding machine ssh public key authourized_keys file of server. after that, not asked password.

this possible if have server access.

this how it

  • copy public key, present @ ~/.ssh/id_rsa.pub
  • append key ~/.ssh/authorized_keys file in server.

after that, can connect server without password


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -