all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: James Thomas <jimjoe@gmx.net>
To: help-gnu-emacs@gnu.org
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	[thread overview]
Message-ID: <86seyptend.fsf@gmx.net> (raw)

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.



                 reply	other threads:[~2024-05-10 23:45 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86seyptend.fsf@gmx.net \
    --to=jimjoe@gmx.net \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.