Created
June 19, 2014 18:49
-
-
Save anonymous/7251fdbfec276818d4f7 to your computer and use it in GitHub Desktop.
A simple batch wrapper around PuTTY's PLINK.EXE to provide integration with EGit on Eclipse
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ECHO OFF | |
: A simple batch script wrapper around PuTTY's PLINK.EXE | |
: to integrate with Eclipse's EGit plugin. | |
: See also: https://stackoverflow.com/a/11763013 | |
SET c="plink.exe" -ssh -agent -l [username] | |
:loop | |
if NOT _%1_ == __ ( | |
IF _%1_ == _-p_ ( | |
SET c=%C% -P | |
) else ( | |
SET c=%C% %1 | |
) | |
shift | |
goto loop | |
) | |
%c% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment