0

Due to some installations, my ssh key paths got modified. So now if I run some git command, like 'git pull -r', I get this:

Enter passphrase for key '/new/path/to/.ssh/id_rsa':

I want to 2 do things:

  1. Dont want to enter passphrase everytime.
  2. Want id_rsa location to some default of my choice and make git know it.

How to do it?

Mandroid
  • 6,200
  • 12
  • 64
  • 134

1 Answers1

1

Regarding the passphrase, see "How do I remove the passphrase for the SSH key without having to create a new key?".
ssh-keygen is available in Windows 10, as packaged with Git for Windows.

Regarding the new path, you can:

  • either move it back in %USERPROFILE%.ssh (both public and private key)
  • or create a %USERPROFILE%\.ssh\config file which will reference the new path of your key. See this answer as an example.
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250