Shears
Shears

Reputation: 1649

Can the time period before a remote git repository (not git hub) hangs up while awaiting a password be increased?

I am running a bash script that performs several git cloning operations in addition to some installations. When trying to clone, if the remote server does not have a password entered into it within a short time, it hangs up.

However, because some of the installs take so long I cannot (and probably should not have to) monitor the progress of the script, waiting for instances when 'git clone' requires a password. I want to be able to leave it running and any time is requires a password it continues to wait for a password without hanging up

My question is how can I increase time the remote end waits before hanging up? I am the owner of the remote server the git repo is on.

Note: I do not want to use passwordless SSH or similar.

Upvotes: 1

Views: 341

Answers (1)

Eugene Sajine
Eugene Sajine

Reputation: 8200

Instead of going through the password based approach I would recommend to setup SSH key based authentication, so you will have no wait at all.

How to generate public SSH keys

Hope that helps

Upvotes: 1

Related Questions