delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/02/15/14:26:33

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E6BC0386D60D
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1708025192;
bh=guzZUa/p1abhUYnZLXMg6uJRFIZTSI7X13wHzhaMvcI=;
h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post:
List-Help:List-Subscribe:From:Reply-To:From;
b=ryDsTgm6Kg/P1fj2ivbhsM52/YweKsw69lj0EJxydh2xPI5mHMj8TcfFOvh31VzhL
DSYwAYBDRccW/ajZ1A7EfE4XAf2SLM+nqsjeJ+n7dlbFMkLMcf6WAbcmXh8kjTQdtK
ch+ra4sy9lPLs9QI3Li8HsIk9XtmT6sBRhKwHma4=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 642F2386C58F
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 642F2386C58F
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708025139; cv=none;
b=gxLL7bjr4ehRUH13ItIKub3dBgiK0vJKwmqLC8I6WTOJK71n31YCFYpfbPD8tMZZJh1abTOfiPzb0tQzzqzEzQMpIH0ZcmEYY/02vtet+yIh7bitHSzIfOSZbHeqypX8vnaoqavFB0/PGfWenAH7khrfzfyJGYqLCYRckXQKn3o=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1708025139; c=relaxed/simple;
bh=T6QHnv8f0k7W7kCSXMWtXt5tXjkumPkXNwEZdodtn1M=;
h=DKIM-Signature:Message-ID:Date:MIME-Version:From:To:Subject;
b=spnLOOrY0IGtYnadrjv3QonQVeT4/i0Ga8Qu3mPDInY+SKY2d4CqnhX9Amu0ZROSRbcxBVFSfPA+Syq8pR88MUfye7QndA8eAqz5mPPqkCOBcC03SRckhR3kSa2q+ib+vScsKY7ovqe1fbxw0EreUM5zacNjKpEatWvVaplwEyw=
ARC-Authentication-Results: i=1; server2.sourceware.org
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_05, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,
RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP,
T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6
X-Spam-Score: 1.1
Message-ID: <0100018dae3b46a4-ccc76b81-1814-421b-a81c-d00436297c10-000000@email.amazonses.com>
Date: Thu, 15 Feb 2024 19:25:36 +0000
X-Mozilla-Status: 0001
X-Mozilla-Status2: 00000000
MIME-Version: 1.0
lMessage-ID: <26062 DOT 25778 DOT 563913 DOT 671336 AT gargle DOT gargle DOT HOWL>
X-Mailer: VM 8.2.0b under 29.1 (x86_64-w64-mingw32)
To: cygwin AT cygwin DOT com
Subject: ssh over stunnel hangs on second connection
X-Virus-Scanned: ClamAV using ClamSMTP
Feedback-ID: 1.us-east-1.Zao4ZYFkcQIqFUKHPFqcIUzSz0SUuTXbgFyfdyEho8U=:AmazonSES
X-SES-Outgoing: 2024.02.15-54.240.8.97
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: cygwin--- via Cygwin <cygwin AT cygwin DOT com>
Reply-To: cygwin AT kosowsky DOT org
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

I am using Cygwin stunnel 5.71 on Windows 11 to connect to 'ssh' into my Ubuntu
server over 'stunnel'.

- The first time I ssh via stunnel it works fine The second time, I
- try to connect, it hangs with 'ssh -v' showing only the initial
  local steps of connection:

	OpenSSH_9.5p1, OpenSSL 3.0.12 24 Oct 2023
	debug1: Reading configuration data /home/myuser/.ssh/config
	debug1: Reading configuration data /etc/ssh_config
	debug1: Connecting to localhost [::1] port 2222.
	debug1: Connection established.
	debug1: identity file /home/myuser/.ssh/id_rsa type 0
	debug1: identity file /home/myuser/.ssh/id_rsa-cert type -1
	debug1: identity file /home/myuser/.ssh/id_ecdsa type -1
	debug1: identity file /home/myuser/.ssh/id_ecdsa-cert type -1
	debug1: identity file /home/myuser/.ssh/id_ecdsa_sk type -1
	debug1: identity file /home/myuser/.ssh/id_ecdsa_sk-cert type -1
	debug1: identity file /home/myuser/.ssh/id_ed25519 type -1
	debug1: identity file /home/myuser/.ssh/id_ed25519-cert type -1
	debug1: identity file /home/myuser/.ssh/id_ed25519_sk type -1
	debug1: identity file /home/myuser/.ssh/id_ed25519_sk-cert type -1
	debug1: identity file /home/myuser/.ssh/id_xmss type -1
	debug1: identity file /home/myuser/.ssh/id_xmss-cert type -1
	debug1: identity file /home/myuser/.ssh/id_dsa type -1
	debug1: identity file /home/myuser/.ssh/id_dsa-cert type -1
	debug1: Local version string SSH-2.0-OpenSSH_9.5

  and '/var/log/stunnel' on the Cygwin client failing early:

    LOG7[main]: Found 1 ready file descriptor(s)
	LOG7[main]: FD=4 events=0x1 revents=0x0
	LOG7[main]: FD=8 events=0x1 revents=0x1
	LOG7[main]: FD=10 events=0x1 revents=0x0
	LOG7[main]: Service [ssh] accepted (FD=3) from ::1:52718


- If I connect a *third* (or more times), 'ssh -v' hangs with the same
  output as above, but there is *no* additional logging in
  '/var/log/stunnel' on the client.


It thus is acting as if 'stunnel' on the Cygwin client itself somehow
hangs/becomes unresponsive early in the second 'ssh' connection
attempt.

Note that the client '/usr/bin/stunnel/ process continues to run so it
doesn't crash.

Killing and relaunching /usr/bin/stunnel restarts the situation
allowing me to ssh-over-stunel OK on the first attempt but again
hanging on the 2nd and subsequent 'ssh' attempts

Also, the 'stunnel' server on Ubuntu continues to run throughout since
I can continue to ssh-over-stunnel into it from other machines.

It doesn't *seem* to be a firewall problem, since it connects fine the
first time. Nor does it seem to be a network or 'stunnel' server
problem.

Any ideas on why this is happening?


-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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