261
291
string sshArguments = String.Empty;
263
294
// starting with OpenSSH version 4.4p1 we can use the
264
295
// ExitOnForwardFailure option for detecting tunnel issues better
265
296
// as the process will quit nicely, for more details see:
266
297
// http://projects.qnetp.net/issues/show/145
267
298
// NOTE: the patch level is mapped to the micro component
269
300
// exit if the tunnel setup didn't work somehow
270
301
sshArguments += " -o ExitOnForwardFailure=yes";
273
312
// run in the background (detach)
274
313
// plink doesn't support this and we can't control the process this way!