From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by sourceware.org (Postfix) with ESMTPS id 664B2384BC17 for ; Thu, 21 Jan 2021 15:14:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 664B2384BC17 Received: by mail-wm1-x32e.google.com with SMTP id v184so1846623wma.1 for ; Thu, 21 Jan 2021 07:14:01 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=pbX7XjfAFFtscLUmjFELsZC5M4zXazV19q7a4oa5Pjk=; b=l3Fak6D74cNlKph+GfbgrwonpA3KuRzDGwIFkJpjAXZZrA+Dq1ar4yYfSQlOnlkWZh 5Uj/n8wFzg/L09rai7arpgoWqV6hZkOdOzSX/D4oUbwBFOhVaahgiCmkIoWDyBAtcd0/ KVasbErvSLeRbhJH46WqN3VbF55/dKOc5jpZ48WxTHpLjWFWQMCuJSZg2wk/AvdLjlyh B0F80f1TnQv8RlnW8eMuxIqxklHoLa5qr8b5kc2+++SyriHLPCM5Y4jkgsz1v872nfJK db12lMJK9ctevTconizgtpGks/1S8UcdzSxvWyJitlXl0A7Ml+IkiFRe+wlkjWrcTr6R 1LUQ== X-Gm-Message-State: AOAM531FYWozWAlVr2ZlKbuKOTB5hoiJKKIuVKSGbzFoiKmTiYCT2NCx 9vikt37eCF01MgSLTttbyFElchiD7M4UDg== X-Google-Smtp-Source: ABdhPJxoziynpA+5DbDKIb5g2xubaSjiGPssu3+k6j9j0wsC9y4nyTfO4xfPWLJ2L4h0x9At3+LoZw== X-Received: by 2002:a1c:99d1:: with SMTP id b200mr9429104wme.37.1611242040503; Thu, 21 Jan 2021 07:14:00 -0800 (PST) Received: from ?IPv6:2003:cc:9f0c:c829:da0:b96d:5847:a707? (p200300cc9f0cc8290da0b96d5847a707.dip0.t-ipconnect.de. [2003:cc:9f0c:c829:da0:b96d:5847:a707]) by smtp.gmail.com with ESMTPSA id z14sm8702892wrm.5.2021.01.21.07.13.59 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 21 Jan 2021 07:14:00 -0800 (PST) Subject: Re: Terminal output disappearing after SSH into cygwin To: cygwin@cygwin.com References: <644c7c45-b1a5-8c9f-8d6d-70b99a06c378@stefanist.com> From: Marco Atzeri Message-ID: Date: Thu, 21 Jan 2021 16:13:59 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: <644c7c45-b1a5-8c9f-8d6d-70b99a06c378@stefanist.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: it Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jan 2021 15:14:04 -0000 On 21.01.2021 14:08, Martyn B wrote: > Hi list! > > Usually after an ssh session, the lines in my terminal are persistant > after exiting the session. This is what I need. > > But at the moment when I exit an ssh session into Cygwin, the terminal > gets cleared and all session information is lost. > > How can I change this behavior? I need the commands and their output. > > Server: Cygwin 3.1.4-1 on Windows 10 (1909), CYGWIN cygsshd > Client: Ubuntu 20.04 / Gnome terminal, xterm very simple: ssh |& tee /tmp/ssh.log you can also use screen logging capability https://stackpointer.io/unix/linux-ssh-session-logging/564/