diff --git a/sshfs.c b/sshfs.c index 89c5760..809568a 100644 --- a/sshfs.c +++ b/sshfs.c @@ -1227,6 +1227,13 @@ static int start_ssh(struct conn *conn) fprintf(stderr, "\n"); } +#if defined(__CYGWIN__) + /* + * Windows native OpenSSH stdio behavior. For details check + * https://github.com/PowerShell/openssh-portable/pull/759 + */ + putenv("OPENSSH_STDIO_MODE=nonsock"); +#endif execvp(sshfs.ssh_args.argv[0], sshfs.ssh_args.argv); fprintf(stderr, "failed to execute '%s': %s\n", sshfs.ssh_args.argv[0], strerror(errno));