From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 46542 invoked by alias); 4 Jun 2018 15:38:08 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 46388 invoked by uid 89); 4 Jun 2018 15:38:03 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=H*r:aa7, restart, chapelain, germain X-HELO: mail-wm0-f52.google.com Received: from mail-wm0-f52.google.com (HELO mail-wm0-f52.google.com) (74.125.82.52) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 04 Jun 2018 15:38:01 +0000 Received: by mail-wm0-f52.google.com with SMTP id n5-v6so2837068wmc.5 for ; Mon, 04 Jun 2018 08:38:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-transfer-encoding; bh=J/6l9ggnAmat6R5E5T71qbBr6XdIVZzmsZKy5fhRu+0=; b=JxuHqYHD0DeLkRjfbA1iir5Poeefc77WAjNw6XneWWDjRapmz9wwOcdbA1b5pBf0VI huYiVKLsXmdDcScVn0q6GYm/+6I6TF4H7fIrwEnh3/uf9NvNMv1RKd0Ohuinc7K3+b/X eycHonuwidSH0uJsYSgwZ6b761myKt72TP6V3VZxgH9r7urA6udO3uG+2ViljgTIQHjR ssvX4tPYqqPhrbuGVeL8J/CeiUuZ1MAIADLC8ea08/Qd34nKrfyyx5Z4bW+aK1884e/w bOGKGD4zvwJC9RY/k+3XAo//v2PQhKkxHlcUwVn/jJiWS6HcnTLpJ4v1Ul6BzOUbCX34 PjYA== X-Gm-Message-State: ALKqPweajtvBHBxjQ0Gvk1wQXgjfg+rMh7GVYuiipWmn5XaAOB+7TvwN 7OwdUjfPgWoH6IIDUDrGVFSNo0wP7MVy0mMIlqM7kQ== X-Google-Smtp-Source: ADUXVKJ7a7x+XhbaV7mMo38IG93FaJZnqz83j1+Ai5BCCbM2S/Xzna8s8ZRYxciAtc1MArxWzGZ8Omt9ugWE2MuwCxE= X-Received: by 2002:a50:f693:: with SMTP id d19-v6mr19030469edn.142.1528126679344; Mon, 04 Jun 2018 08:37:59 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:aa7:c1cf:0:0:0:0:0 with HTTP; Mon, 4 Jun 2018 08:37:18 -0700 (PDT) In-Reply-To: <1fd63f27-9d18-446c-24a4-326b09998c08@lanvaux.fr> References: <1fd63f27-9d18-446c-24a4-326b09998c08@lanvaux.fr> From: Greg Freemyer Date: Mon, 04 Jun 2018 15:38:00 -0000 Message-ID: Subject: AutoSSH problem To: "cygwin@cygwin.com" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2018-06/txt/msg00012.txt.bz2 On Thu, May 31, 2018, 4:58 AM Germain Le Chapelain wrot= e: > > Hi, > > > I am experiencing troubles trying to set up a reverse SSH tunnel: > > I have installed AutoSSH as such: > > cygrunsrv.exe -I AutoSSH -p /bin/autossh -a "-M 20000 -R > *:5900:localhost:5900 SMI@lanvaux.fr" -y tcpip --type auto -e > AUTOSSH_NTSERVICE=3Dyes > > > Now, it works great, except if the ssh service at lanvaux.fr would > become unavailable. > > In this case, the service stops. If you're still having problems: I've had it working for about 4 years. I've set it up on at least 4 different windows PCs. WIN7 and WIN10. I changed jobs 6 months ago so I no longer have access to any of the comput= ers. But I did write-up my notes as a blog post: https://lizards.opensuse.org/2015/04/20/using-opensuse-as-a-reverse-tunnel-= site-for-windows-7-remote-desktop/ Key section of the write-up for your issue assuming your SSHD server is Lin= ux: =3D=3D=3D 4) Tweak the sshd_config on the server By default openSUSE enables =E2=80=9CAllowTcpForwarding=E2=80=9D and =E2=80= =9CTCPKeepAlive=E2=80=9D. Verify they are either commented out or set to =E2=80=9Cyes=E2=80=9D in /etc/ssh/sshd_config Set =E2=80=9CGatewayPorts yes=E2=80=9D and =E2=80=9CClientAliveInterval 300= =E2=80=9D in /etc/ssh/sshd_config. Also make sure they are not commented out. restart sshd to get the config values to be re-read: sudo systemctl restart sshd.service =3D=3D=3D Maybe that will help. Greg -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple