Tortoisegit asking password

后端 未结 16 1414
栀梦
栀梦 2020-12-04 11:10

I just started to work on Git. I use windows 7 and has installed msysgit(1.7.8) and Tortoisegit(1.7.6). The repository is created on Linux server which is accessible thru LA

相关标签:
16条回答
  • 2020-12-04 11:29

    I had the same issue. My environment is windows 10 with TortoiseGit 2.3.0.0 and git version 2.11.0.windows.1

    The following solved my problem:

    • Right click -> TortoiseGit -> Settings -> Network
    • Update SSH client to C:\Program Files\Git\usr\bin\ssh.exe

    0 讨论(0)
  • 2020-12-04 11:30

    What I did to fix this (windows):

    1. Open PuttyGen import my ssh key and convert it into a putty key, save both public and private parts in the .ssh folder (%userprofile%.ssh)
    2. Open Putty and go to Connection->SSH->Auth then set your private key file there.
    3. Go back to Session, select Default Settings and hit Save.
    4. Now try to clone again and you will be asked for the passphrase on your ssh key, enter it and it should work.
    0 讨论(0)
  • 2020-12-04 11:31

    Had the same problem. In my case there was no password I could enter there. The connection was configured as SSH but there were no keys defined for repo.

    Check out: TortoiseGIT SSH configuration. Those instructions are for cloudforge, but for other services you have to do the same, just provide your public key to your git repository provider.

    0 讨论(0)
  • 2020-12-04 11:37

    To do it without keys...

    Right click on your folder
    Select tortoiseGit->settings->Git->Remote
    Select origin (or whatever you have labeled your main remote)

    Under URL use this format.

    Https://USERNAME:PASSWORD@URL

    Where USERNAME is your username
    : the colon separates username and password and must be there
    PASSWORD is your password
    @ separates credentials with your url
    URL is the url you would use to connect to the .git resource

    Thanks goes to Kamaci

    0 讨论(0)
  • 2020-12-04 11:37

    The URL and the window title TortoisePlink both indicate that tortoise are trying to use ssh as the transport protocol. git support more than one transport protocol, including file system access, and ssh access. In your question, you are describing that you want to access your remote repo by file system access. In that case your remote url should look something like file://server/path/to/repo. Please check your remote repo URL again.

    0 讨论(0)
  • 2020-12-04 11:39

    Pramodtech's answer stopped working for me with the current version of the official Windows Git client. It stores the ssh executable in Git\usr\bin instead of Git\bin now (since version 2.5 released in Aug 2015).

    So go to TortoiseGit > Settings > Network and change the SSH client path to:

    C:\Program Files\Git\usr\bin\ssh.exe (or whatever the path to your Git installation is)

    0 讨论(0)
提交回复
热议问题