all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Re: TRAMP: Session timeout and very frequent login while editing remote files (time after 5 minutes). How to configure properly?
@ 2024-05-10 23:45 James Thomas
  0 siblings, 0 replies; only message in thread
From: James Thomas @ 2024-05-10 23:45 UTC (permalink / raw)
  To: help-gnu-emacs

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.



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-05-10 23:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-10 23:45 TRAMP: Session timeout and very frequent login while editing remote files (time after 5 minutes). How to configure properly? James Thomas

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.