From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx.sdf.org (mx.sdf.org [205.166.94.24]) by sourceware.org (Postfix) with ESMTPS id 6F1B23858D20 for ; Thu, 17 Aug 2023 21:38:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6F1B23858D20 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=freeshell.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=freeshell.org Received: from sdf.org (IDENT:drbean@sdf.org [205.166.94.16]) by mx.sdf.org (8.16.1/8.14.5) with ESMTPS id 37HLcaFi021375 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO) for ; Thu, 17 Aug 2023 21:38:36 GMT Received: (from drbean@localhost) by sdf.org (8.16.1/8.12.8/Submit) id 37HLcZO0020333 for cygwin@cygwin.com; Thu, 17 Aug 2023 21:38:35 GMT Date: Thu, 17 Aug 2023 21:38:35 +0000 From: Dr Bean To: Cedric Blancher via Cygwin Subject: Re: Persistent and same Cygwin session for Windows login and ssh login? Message-ID: Mail-Followup-To: Cedric Blancher via Cygwin References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20230407 X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,KAM_DMARC_STATUS,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Thu, 17 Aug 2023, Cedric Blancher via Cygwin wrote: > Good evening! > > How can I get a Cygwin session for one Windows login, and get the same > Cygwin session when I log into the same Windows machine via ssh? Following https://learn.microsoft.com/ja-jp/windows-server/administration/openssh/openssh_server_configuration and substituting cygwin bash's path for powershell's, I get a cygwin bash shell. But $HOME is Window's and .bashrc is not executed. Let me see if I can set HOME. > > Also, where does Cygwin store session information? > > Ced > -- > Cedric Blancher > [https://plus.google.com/u/0/+CedricBlancher/] > Institute Pasteur > > -- > 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 -- Greg Matheson Theory and practice. In theory, they are the same thing. http://drbean.sdf.org In practice, they are different. drbean@freeshell.org --https://quoteinvestigator.com/2018/04/14/theory/