aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/misc/tramp.texi26
1 files changed, 25 insertions, 1 deletions
diff --git a/doc/misc/tramp.texi b/doc/misc/tramp.texi
index 8cd0a72fc8c..79185285623 100644
--- a/doc/misc/tramp.texi
+++ b/doc/misc/tramp.texi
@@ -721,11 +721,17 @@ the host returned by the function @command{(system-name)}. See
721Similar to @option{su} method, @option{sudo} uses @command{sudo}. 721Similar to @option{su} method, @option{sudo} uses @command{sudo}.
722@command{sudo} must have sufficient rights to start a shell. 722@command{sudo} must have sufficient rights to start a shell.
723 723
724Due to security reasons, a @option{sudo} connection is disabled after
725a predefined timeout (5 minutes per default). This can be changed,
726see @ref{Predefined connection information}.
727
724@item @option{doas} 728@item @option{doas}
725@cindex method @option{doas} 729@cindex method @option{doas}
726@cindex @option{doas} method 730@cindex @option{doas} method
727 731
728This method is used on OpenBSD like the @command{sudo} command. 732This method is used on OpenBSD like the @command{sudo} command. Like
733the @option{sudo} method, a @option{sudo} connection is disabled after
734a predefined timeout.
729 735
730@item @option{sg} 736@item @option{sg}
731@cindex method @option{sg} 737@cindex method @option{sg}
@@ -1826,6 +1832,24 @@ The parameters @code{tramp-remote-shell} and
1826@code{tramp-remote-shell-login} in @code{tramp-methods} now have new 1832@code{tramp-remote-shell-login} in @code{tramp-methods} now have new
1827values for the remote host. 1833values for the remote host.
1828 1834
1835A common use case is to override the session timeout of a connection,
1836that is the time (in seconds) after a connection is disabled, and must
1837be reestablished. This can be set for any connection; for the
1838@option{sudo} and @option{doas} methods there exist predefined values.
1839A value of @code{nil} disables this feature. For example:
1840
1841@lisp
1842@group
1843(add-to-list 'tramp-connection-properties
1844 (list (regexp-quote "@trampfn{sudo,root@@system-name,}")
1845 "session-timeout" 30))
1846@end group
1847@end lisp
1848
1849@noindent
1850@samp{system-name} stands here for the host returned by the function
1851@command{(system-name)}.
1852
1829@var{property} could also be any property found in 1853@var{property} could also be any property found in
1830@code{tramp-persistency-file-name}. 1854@code{tramp-persistency-file-name}.
1831 1855