Tortoisegit asking password

后端 未结 16 1477
栀梦
栀梦 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:40

    One way to do this is

    • generate a keypair using PuttyGen, (or import into .ppk if you already have a key)
    • load the private key to peagent
    • import public key to you gitosis server (supply your public key to your admin)
    • and then use plink as SSH client

    plink works natively with peagent to retrieve the loaded key.

    you can find plink.exe along with peagent and other goodies in standard putty distribution

    to use it go to:

    TortoiseGit Settings -> Network -> SSH client .

    by default this contains path to TortoisePlink.exe, instead of that give path to plink.exe

    Alternatively you can use ssh(.exe) in msys(git) distribution but then you cannot use private key in .ppk format/Peagent combination. You either need to export your key to OpenSSH format via PuttyGen or create a keypair using ssh-keygen instead.

提交回复
热议问题