DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 579Bp9kd090144
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 579Bp9kd090144
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=LWyumcb4
X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 55FD4385735D
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1754740268;
	bh=FWyA+XwG7wO2zrAjZwpIV2cyf0wPzYQtU+QGIe4fFpY=;
	h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe:
	 List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
	 From;
	b=LWyumcb4630E2uoTHA3XBqO5ldXGI37bBbLt/2f0zuSxNVaDRFLcJ/KPmTKxu81Oe
	 U+wIX4zurHcJK5TjlCunmx5exK7Q8pl1UuF8cAj0QqiEmFgxk2zn5JlBabiafEO7oY
	 gZZzfSyU2X/UDAMoDS4guPZVt4gIWgBqzIRvxjn8=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2C9653858D29
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 2C9653858D29
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1754740203; cv=none;
 b=csDptpWL/r/u7Kk863XkBf557eGHuykGfGoo0dWv9CT8WyGntKGQ7TunuXt6l9MbJBvlTnKwxhWgEfsvzHpyK32qkWdTZez53D5Ete9+jm4NVJi1KNrutnc+mznaOfyb/jpmMkj/wRrhH4qhEl2+8EICwiczPNMkpHLW9oMt8tw=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
 t=1754740203; c=relaxed/simple;
 bh=sdbJeskLqjV+H7oMvhTMy0BifmwtCthtRNHR32hxfRQ=;
 h=DKIM-Signature:Date:From:Message-ID:To:Subject:MIME-Version;
 b=h/+yO/LAE7vBpzqoFD+5jb5GQX9QQpPtF0m11mFYbBfDwbD8bnDnD38ZHU3AkKSuQSBxe1cSWLNogqQrTa00INlXwgDcq4l2VMs4r0dbs3qxR7yptsF3W8qeP2Mi1XYDC5Fn1Hr3M9tTQt/66L8o6uarJg6CKhlvI7Sls1Y+0Kg=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2C9653858D29
X-Yandex-Fwd: 1
Date: Sat, 9 Aug 2025 14:48:26 +0300
X-Mailer: The Bat! (v9.3.4) Professional
Message-ID: <425098424.20250809144826@yandex.ru>
To: L 2750558108 <L2750558108@outlook.com>, cygwin@cygwin.com
Subject: Re: Screen : The screen session creaeted by ssh and local console
 seems separated
In-Reply-To: <730588d6e22d4284b49f15ee853dcd7cae21594247a844718d3025c696f69141SA1P220MB16569712CB359D8E14F2E7F9B12CA@SA1P220MB1656.NAMP220.PROD.OUTLOOK.COM>
References: <SA1P220MB1656486F8E863333AE2AADE8B12DA@SA1P220MB1656.NAMP220.PROD.OUTLOOK.COM>
 <20250807131611.3e7ddc20a0dbc9432e1ba974@nifty.ne.jp>
 <20250807132154.d38418f36df0bde3c4a67562@nifty.ne.jp>
 <730588d6e22d4284b49f15ee853dcd7cae21594247a844718d3025c696f69141SA1P220MB16569712CB359D8E14F2E7F9B12CA@SA1P220MB1656.NAMP220.PROD.OUTLOOK.COM>
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: Andrey Repin via Cygwin <cygwin@cygwin.com>
Reply-To: cygwin@cygwin.com
Cc: Andrey Repin <anrdaemon@yandex.ru>
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>

Greetings, L 2750558108!

> But if that's the case, I won't be able to achieve the functionality I want.

> The actual scenario is as follows: my friend set up a server host and runs
> a console server program on it.

Is that a Windows host or Linux?

> I hope to remotely access his host via ssh at any time and use his server
> program console (including viewing historical messages and inputting
> commands), while he can also directly use the console of this program on the
> server host.

If you want to share the same console, GNU screen needs to be configured in a
certain way. And that's not an easy setup.
I would strongly recommend to look into tmux instead.

> By the way, I found that the situation described in this post
> (https://stackoverflow.com/questions/67443908/behavior-of-screen-over-ssh-cygwin-screen-detachment)
> is exactly the same as what I encountered while looking for help.

That issue has been fixed like 3 to 5 years ago.

screen -aS main
^A^D
screen -aDR main


-- 
With best regards,
Andrey Repin
Saturday, August 9, 2025 14:40:08

Sorry for my terrible english...


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