DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 5774HHbs3011316
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 5774HHbs3011316
Authentication-Results: delorie.com;
	dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=VeJtG6DK
X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 09C083858408
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1754540235;
	bh=XLE1LxREvLYkuRwmCOf812b90yjE2LvYyFHUL2fagU0=;
	h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe:
	 List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
	 From;
	b=VeJtG6DK8kKuTEfev49tI3QOp+lcq/aO9UUVPGuG0LSuPGzHcEjTjvCOrDiKWj9St
	 Of6/FDE8Ji8GvljAK0O9t7ceq57/Z3uiCokOzolptwQlU9SQeV1MqgN1vjl+EXgVuL
	 RDEzmLeqz6OE4uMq5MUrwDGWwvX5FX75jRqL+Zug=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A83503858D21
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org A83503858D21
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1754540177; cv=none;
 b=Q79u6EMaLJvhX0B2fPjvYYzaw5GdFLeD9xi/cfadOKrFDSlx+g7zpoBw1F0qi2HzMhFU5m03fQ4sJSq8BnP+EUUvCkdIl55Kl+Bw8yF3in1QFWV+W0hhNB0PeXetPIv2aZvlgex3A9o9wL3oCCREehdNEASNx2hqO/JAIt+2WQU=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
 t=1754540177; c=relaxed/simple;
 bh=co5tahc58jYBWKL+rJwmKwpssmcJ35DdT2heZhwkDoQ=;
 h=Date:From:To:Subject:Message-Id:Mime-Version:DKIM-Signature;
 b=nUOHebyxblz0T8TYbzx/lwf5wme5BAyvdrHA4yupDqnUaDnpAJdoEF1HhsqcI+4oy/cc5sIwlVZkXY14HuNWiar4HZIblttZviiXztffLinhBHkBXZeQiU4ux48zd6txBu1YQfPQRv7WgXgNUaFaYNlc/mfkBmlYKsQuPyN4Kuk=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A83503858D21
Date: Thu, 7 Aug 2025 13:16:11 +0900
To: cygwin@cygwin.com
Subject: Re: Screen : The screen session creaeted by ssh and local console
 seems separated
Message-Id: <20250807131611.3e7ddc20a0dbc9432e1ba974@nifty.ne.jp>
In-Reply-To: <SA1P220MB1656486F8E863333AE2AADE8B12DA@SA1P220MB1656.NAMP220.PROD.OUTLOOK.COM>
References: <SA1P220MB1656486F8E863333AE2AADE8B12DA@SA1P220MB1656.NAMP220.PROD.OUTLOOK.COM>
X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32)
Mime-Version: 1.0
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.30
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Takashi Yano via Cygwin <cygwin@cygwin.com>
Reply-To: Takashi Yano <takashi.yano@nifty.ne.jp>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cygwin-bounces~archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie.com@cygwin.com>

On Wed, 6 Aug 2025 15:32:49 +0000
L 2750558108 wrote:
> I tried both of the built-in ssh of Windows and the cygwin's one, but the result was the same
> 
> Specifically, these are what i did
> 1.Download the cygwin setup.exe and install cygwin and screen package
> 2.Add the cygwin/bin to PATH environment variable
> 3.Open a local console
> 4.excute "screen -S name"
> 5.press ctrl+a+d to detach
> 6.Open another local control
> 7.execute "ssh username@localhost" and login
> 8.in the ssh connect, execute "screen -r name", and see the command no output exit or the console stuck

Are you sure? This should work. 

Though,
1) Open a local console
2) execute "ssh localhost" and long
3) execute "screen"
4) press ctrl+a+d to detach
5) Open another local console
6) execute "screen -r"
does not work.

This is because the console device cannot be accessed from another
session (inside ssh login).

This is the limitation of current cygwin console feature.

However, 
1) Open a local console
2) execute "ssh localhost" and long
3) execute "screen"
4) press ctrl+a+d to detach
5) Open another ***mintty***
6) execute "screen -r"
should work.

-- 
Takashi Yano <takashi.yano@nifty.ne.jp>

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