delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/06/04/11:38:20

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:in-reply-to:references:from:date
:message-id:subject:to:content-type:content-transfer-encoding;
q=dns; s=default; b=ZmnnS1FwHL13NT1DU36TdXm3yPLbxB7VcfnlO+LKAnP
Ya8w3QzpWWmNHFLUK+n2JEU8bBHOLlNCBCO7ZjeEOkRVD+nKru0VC0AFXa5sgfo6
vNxwPbYqbbL8i4VYDIibK32/xd7tk+VeatDizsmei+SFGn9O+vzxhXcK3iKD3ZjA
=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:in-reply-to:references:from:date
:message-id:subject:to:content-type:content-transfer-encoding;
s=default; bh=AM2kjUHYM/6TWA6c3EInMZfghhQ=; b=YUqYXZYxDIwWpy44O
/GXwbDw2PtsirpByyukb9lkQ40+G/TV4OudwxDmz7q0JH9BO3Kr2OPs5Y666G8gY
N8iaoHJU+qGKXG9VR2h+Ytd89SjOT9Z8S6RoiEQwwWs14NACzms3CQqoXiv4MhP0
YanIyAW/Dn3x42AeYC5GQgJvrg=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
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
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
In-Reply-To: <1fd63f27-9d18-446c-24a4-326b09998c08@lanvaux.fr>
References: <1fd63f27-9d18-446c-24a4-326b09998c08 AT lanvaux DOT fr>
From: Greg Freemyer <greg DOT freemyer AT gmail DOT com>
Date: Mon, 4 Jun 2018 11:37:18 -0400
Message-ID: <CAGpXXZLsairq=HOrt2UWss55UKd1Gjt0xr4yLuk34dmW5ognww@mail.gmail.com>
Subject: AutoSSH problem
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id w54FcIXI020241

On Thu, May 31, 2018, 4:58 AM Germain Le Chapelain <german AT lanvaux DOT fr> wrote:
>
> 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 AT lanvaux DOT fr" -y tcpip --type auto -e
> AUTOSSH_NTSERVICE=yes
>
>
> 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 computers.

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 Linux:

===
4) Tweak the sshd_config on the server

By default openSUSE enables “AllowTcpForwarding” and “TCPKeepAlive”.
Verify they are either commented out or set to “yes” in
/etc/ssh/sshd_config

Set “GatewayPorts yes” and “ClientAliveInterval 300” 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

===

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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019