delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2025/08/07/00:17:18

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 AT delorie DOT 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 AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT 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 AT cygwin DOT 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 AT SA1P220MB1656 DOT NAMP220 DOT PROD DOT OUTLOOK DOT COM>
X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32)
Mime-Version: 1.0
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-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
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: Takashi Yano via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>
Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT 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 AT 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 DOT yano AT nifty DOT ne DOT 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

- Raw text -


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