0

I used git bash to clone an SSH repo (e.g. ssh://user@host:/var/www/git/www.git). When doing the clone it asked me for the password, which I entered on the command line. It managed to clone the repo.

Now every time I want to pull / push it asks me for the password. How can I automate this step?

4
  • You should take a look into adding an SSH key to your github account - help.github.com/articles/… Commented Aug 22, 2017 at 9:46
  • The repo isn't on Github though. Commented Aug 22, 2017 at 9:49
  • 1
    Then you can configure a ssh key for your user on the host machine Commented Aug 22, 2017 at 10:08
  • Possible duplicate of Configuring Git over SSH to login once Commented Aug 22, 2017 at 19:27

1 Answer 1

1

If you're sure you've used SSH (and not HTTPS), then you should have set a key to identify yourself, and the password you mention must be the passphrase of your key.

Then you should use a ssh-agent (or KeyChain in MacOS) to remember your password during the whole session.

Another (unsecure) way is to remove teh passphrase form your SSH key.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.