I was trying to setup a remote Subversion server and needed to access it via ssh. I have accomplished the task but with one annoying problem, both
Cygwin ssh and
plink were displaying consoles when browsing the SVN tree, every time I expand a directory!
I decided to hack plink in order to hide its console. The solution I found is as follows:
- Change Linker's SubSystem property to Windows:
- Append following entry point after main function:
int WinMain(hInstance, hPrevInstance, lpCmdLine, nCmdShow)
{
main(__argc,__argv);
}
Just by this hack, the resulting exe is of very limited use. It can only process command line arguments, cannot read from or write to console, and should exit gracefully after processing command line arguments. This is our case for using plink.exe as ssh client of SVN!
You can download my build of plink from
this location. I advise to use original plink for a time to understand configuration errors, if any.