From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: James Thomas Newsgroups: gmane.emacs.help Subject: Re: TRAMP: Session timeout and very frequent login while editing remote files (time after 5 minutes). How to configure properly? Date: Sat, 11 May 2024 05:15:26 +0530 Message-ID: <86seyptend.fsf@gmx.net> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9119"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 11 01:46:38 2024 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1s5Zwj-0002AQ-GM for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 11 May 2024 01:46:37 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s5Zvu-0002RF-HG; Fri, 10 May 2024 19:45:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s5Zvl-0002Ph-Gf for help-gnu-emacs@gnu.org; Fri, 10 May 2024 19:45:41 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s5Zvi-00049u-MH for help-gnu-emacs@gnu.org; Fri, 10 May 2024 19:45:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net; s=s31663417; t=1715384731; x=1715989531; i=jimjoe@gmx.net; bh=gcmEjOs4GBKsQ3t5PffLcK/f1WqB4/smwMYkVAzqaxY=; h=X-UI-Sender-Class:From:To:Subject:Date:Message-ID:MIME-Version: Content-Type:Content-Transfer-Encoding:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=DWOrbRoa507XWXeWf/d9yZ0Mx9GQlRxOsIncYunSyW935HBqT7cML8fMAqg2S7VA PRjAG6TkTomInqFP7Hcy8VcF+nTupj/UIlPCLEF2epTtyuVPThKz8ma6j2JBjtADT dCMcKLaJEi16EWXxqTtWIhF4KhC1ZMtKJvmAx8EKIq6P53R4Si19acIgOUm8ZMvCp BGPT1u5pxw1hKnm8NBVu77miOVkkJz5Ih6B66febnZlY0nNWW1xapvqr4PoTfZSyi 9xH7RqSuYxuUHSZxjkriouJJV4pIONV+Ny+p6EF+JReIQJiomFGZYMvYT/+Gv6bML zAyLPEUUSlh6KUr2zw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from user-Inspiron-3493 ([59.92.160.34]) by mail.gmx.net (mrgmx005 [212.227.17.184]) with ESMTPSA (Nemesis) id 1N7QxL-1sg2h52FzB-017oau for ; Sat, 11 May 2024 01:45:31 +0200 X-Provags-ID: V03:K1:AstESy5f+XJbPs4kzBq2DJ0IAbZ7cVpcW+Nrn3c8iR2xNRXbu6p nKV3qeYYikr5MPxEQb/K8VTiCBHt3XVeBlpEs0rACBWE6fSUv3elapJzugCNe395hXavqfT QcK42jJm6+k1vtcuGsOMe/yek/nHcX+abDFEPUq4m32CRcxFxrbcVAh+fn6C5G9SYpyZrLZ xsgQBymIGVDOJ8XGvqoNg== UI-OutboundReport: notjunk:1;M01:P0:N1dSUt/DapE=;Y5gxvfO4c1QaZpnhP60k2n8Sds/ UPHa9kNSIz4Wbbc+edRdfseQxnSM7bFYlhsFneGODek7005ezoPe/bEfb4SsXpgr5GuukTqNw AyegxOyM8N51b5hwnYiW6+xlDzyOZ+h2DMVHqoSQNn0lznKpbaYiFTN6a5BG8D1IKf1fEPNfW FTzqfiRGYpRpUeMf6zlabJDDQpLuQellRKrMciEtcb8rrimyW/7sHztkvVxACytLlZn+eWzAv ow3RVV/MqKk0I6tLIW2tDsUaLMLNLz3m3Hu7bxzhx9DLUB82oqtpqCYLOhbz/691w+6MiPK2Q Wj8dPhHvhmx3maqz7v6WjBlx74fQJqxXZFugwABTlvANWomzAO9LCMqk6IBwNsF6vBE9nAURi RHIEVrcHm9HUBCFbS7/TaQBsW7UVgBTLCN8Gi6CNZuuxPEjQI9TYBaxPRc0ctU94gXDrd5zHP fYE7TRJYTE17jI19Nyi0SG2/RqZzvPB9Cuh5QliI1cRKppXPW7U1Z/ye/K/UksWzM8eOjaG3z MjXTTRp6XPliQ2AcAL6YIW5GNxmIu1qRu++3JnF0/Mme6JaRKCePL0zuBqg6hn2f/9Wss6ZL6 psAS0i7DsEhSuaMZmrt6Asplkr0TCLiXdw+dWTLUFdsRA8AcN/oEMeDNr1gkueNrVgcbmULyA xPKIwQw2vx6vkh9wWz/bQIRUZJgbSmu4GCvWlp1dWTkf+o9AshZv5XIFSUXVcQe6438XDb7no h9uvMj5UhC5PQPTQi0oWB4abiHezZuJqDEe6o+3sqCzVnDfeJiTcY8xb4yvjcgRJmMLrf+Tk Received-SPF: pass client-ip=212.227.15.18; envelope-from=jimjoe@gmx.net; helo=mout.gmx.net X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FAKE_REPLY_C=1.486, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:146668 Archived-At: https://old.reddit.com/r/emacs/comments/1cmynso/tramp_session_timeout_and_= very_frequent_login/ > Hej fellow 'macsers, > > title says it all, basically. I would like to use TRAMP to edit files > remotely, but a session will only last for five minutes, after which a > new connection is opened. This leaves a massive papertrail on the > machine which I'd like to avoid, instead staying connected for as long > as I'd like. > > I already checked my SSH-settings and don't have these kinds of > problems when I am connecting via SSH regularly, which leads me to > believe that this is related to Emacs/TRAMP. I have tried to set the > ssh session timeout to nil via \`(add-to-list > 'tramp-connection-properties '("/ssh:" "session-timeout" nil))\` but > so far it does not seem to yield the desired result. > > The setup in which I work features a jump host, so that I connect via > SSH twice (once to the jump host, than to my actual destination). I > have adapted the SSH \`ServerAliveInterval\` accordingly on both > machines, to no avail. > > Do you guys have another tip on how to configure TRAMP so as to make > it work as desired? I'd really LOVE to use TRAMP, because it allows me > to use Emacs when editing files remotely instead of vim (which is > installed on remote machines). > > Have a good day, fellows! If it's exactly 5 mins, it might be the 'sudo' method; see (info "(tramp) Inline methods"). Not ssh. Regards, James P.S. https://karl-voit.at/2020/10/23/avoid-web-forums/ explains why I'm posting here instead.