Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Configure Git to use Plink

Tags:

git

msysgit

plink

I'm trying to configure Git to use Plink. It worked for me many times before. Now, for some reason, this option isn't available to me (it is disabled):

Git Setup Plink option screenshot

I tried uninstalling and reinstalling Git a hundred times. Nothing. I can't get to this option enabled.

like image 374
Terminal58 Avatar asked Jun 06 '10 17:06

Terminal58


People also ask

How do I run a plink command?

Plink is a command line application. This means that you cannot just double-click on its icon to run it and instead you have to bring up a console window. In Windows 95, 98, and ME, this is called an 'MS-DOS Prompt', and in Windows NT, 2000, and XP, it is called a 'Command Prompt'.

How does plink exe work?

Plink (PuTTY Link) is a command-line connection tool similar to UNIX ssh . It is mostly used for automated operations, such as making CVS access a repository on a remote server. Plink is probably not what you want if you want to run an interactive session in a console window.

Where is plink exe located?

The file plink.exe is located in a subfolder of "C:\Program Files" or sometimes in a subfolder of C:\. Known file sizes on Windows 10/8/7/XP are 294,912 bytes (50% of all occurrences), 319,488 bytes or 282,624 bytes.


1 Answers

I just had this problem (with a newer version of Git, 1.7.9). I used the answer from VonC, but only a couple of steps were needed:

  1. Set the environment variable GIT_SSH to the location of plink.exe
  2. Run pageant.exe and load your private key

On 64 bit Windows, the default location for plink is C:\Program Files (x86)\GitExtensions\PuTTY\plink.exe The spaces in the path no longer seem to be a problem.

like image 96
andypaxo Avatar answered Sep 24 '22 07:09

andypaxo