aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2019-09-20 17:29:08 +0200
committerMichael Albinus2019-09-20 17:29:08 +0200
commitcc59e292cf070296df5d0f73eef48af32e71f5f0 (patch)
treef5f52734e44906c790e3344adb523fe29d2068b4
parent8b1af4a0bf82a92374d4e8205057880f7d28ede9 (diff)
downloademacs-cc59e292cf070296df5d0f73eef48af32e71f5f0.tar.gz
emacs-cc59e292cf070296df5d0f73eef48af32e71f5f0.zip
; Improve wording of last Tramp commit, suggested by Robert Pluim
-rw-r--r--doc/misc/tramp.texi15
-rw-r--r--lisp/net/tramp.el30
2 files changed, 26 insertions, 19 deletions
diff --git a/doc/misc/tramp.texi b/doc/misc/tramp.texi
index 1440521df56..ba0545c38de 100644
--- a/doc/misc/tramp.texi
+++ b/doc/misc/tramp.texi
@@ -805,8 +805,8 @@ behavior.
805 805
806Works like @option{ssh} but without the extra authentication prompts. 806Works like @option{ssh} but without the extra authentication prompts.
807@option{sshx} uses @samp{ssh -t -t @var{host} -l @var{user} /bin/sh} 807@option{sshx} uses @samp{ssh -t -t @var{host} -l @var{user} /bin/sh}
808to open a connection with a ``standard'' login shell. It supports to 808to open a connection with a ``standard'' login shell. It supports
809change the remote login shell @command{/bin/sh}. 809changing the remote login shell @command{/bin/sh}.
810 810
811@strong{Note} that @option{sshx} does not bypass authentication 811@strong{Note} that @option{sshx} does not bypass authentication
812questions. For example, if the host key of the remote host is not 812questions. For example, if the host key of the remote host is not
@@ -842,8 +842,7 @@ This is another method from the Kerberos suite. It behaves like @option{su}.
842 842
843@option{plink} method is for MS Windows users with the PuTTY 843@option{plink} method is for MS Windows users with the PuTTY
844implementation of SSH@. It uses @samp{plink -ssh} to log in to the 844implementation of SSH@. It uses @samp{plink -ssh} to log in to the
845remote host. It supports to change the remote login shell 845remote host. It supports changing the remote login shell @command{/bin/sh}.
846@command{/bin/sh}.
847 846
848Check the @samp{Share SSH connections if possible} control for that 847Check the @samp{Share SSH connections if possible} control for that
849session. 848session.
@@ -857,7 +856,7 @@ session.
857Another method using PuTTY on MS Windows with session names instead of 856Another method using PuTTY on MS Windows with session names instead of
858host names. @option{plinkx} calls @samp{plink -load @var{session} 857host names. @option{plinkx} calls @samp{plink -load @var{session}
859-t}. User names and port numbers must be defined in the session. It 858-t}. User names and port numbers must be defined in the session. It
860supports to change the remote login shell @command{/bin/sh}. 859supports changing the remote login shell @command{/bin/sh}.
861 860
862Check the @samp{Share SSH connections if possible} control for that 861Check the @samp{Share SSH connections if possible} control for that
863session. 862session.
@@ -932,7 +931,7 @@ This method supports the @samp{-p} argument.
932@option{scpx} is useful to avoid login shell questions. It is similar 931@option{scpx} is useful to avoid login shell questions. It is similar
933in performance to @option{scp}. @option{scpx} uses @samp{ssh -t -t 932in performance to @option{scp}. @option{scpx} uses @samp{ssh -t -t
934@var{host} -l @var{user} /bin/sh} to open a connection. It supports 933@var{host} -l @var{user} /bin/sh} to open a connection. It supports
935to change the remote login shell @command{/bin/sh}. 934changing the remote login shell @command{/bin/sh}.
936 935
937@option{scpx} is useful for MS Windows users when @command{ssh} 936@option{scpx} is useful for MS Windows users when @command{ssh}
938triggers an error about allocating a pseudo tty. This happens due to 937triggers an error about allocating a pseudo tty. This happens due to
@@ -956,7 +955,7 @@ use the @command{plink} command to connect to the remote host, and
956they use @command{pscp} or @command{psftp} for transferring the files. 955they use @command{pscp} or @command{psftp} for transferring the files.
957These programs are part of PuTTY, an SSH implementation for MS Windows. 956These programs are part of PuTTY, an SSH implementation for MS Windows.
958 957
959They support to change the remote login shell @command{/bin/sh}. 958They support changing the remote login shell @command{/bin/sh}.
960 959
961Check the @samp{Share SSH connections if possible} control for that 960Check the @samp{Share SSH connections if possible} control for that
962session. 961session.
@@ -3776,7 +3775,7 @@ you want to use another value for @env{TERM}, change
3776@code{tramp-terminal-type} and this line accordingly. 3775@code{tramp-terminal-type} and this line accordingly.
3777 3776
3778Alternatively, you could set the remote login shell explicitly. See 3777Alternatively, you could set the remote login shell explicitly. See
3779@ref{Remote shell setup} for discussing this technique, 3778@ref{Remote shell setup} for discussion of this technique,
3780 3779
3781When using fish shell on remote hosts, disable fancy formatting by 3780When using fish shell on remote hosts, disable fancy formatting by
3782adding the following to @file{~/.config/fish/config.fish}: 3781adding the following to @file{~/.config/fish/config.fish}:
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index 934b5dd9d9f..b044762b70d 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -211,27 +211,35 @@ pair of the form (KEY VALUE). The following KEYs are defined:
211 or the name of telnet or a workalike, or the name of su or a workalike. 211 or the name of telnet or a workalike, or the name of su or a workalike.
212 212
213 * `tramp-login-args' 213 * `tramp-login-args'
214 This specifies the list of arguments to pass to the above 214 This specifies a list of lists of arguments to pass to the
215 mentioned program. Please note that this is a list of list 215 above mentioned program. You normally want to put each
216 of arguments, that is, normally you don't want to put \"-a 216 argument in an individual string, i.e.
217 -b\" or \"-f foo\" here. Instead, you want a list (\"-a\" 217 (\"-a\" \"-b\") rather than (\"-a -b\").
218 \"-b\"), or (\"-f\" \"foo\"). There are some patterns:
219 218
220 - \"%h\" in this list is replaced by the host name 219 \"%\" followed by a letter are expanded in the arguments as
220 follows:
221
222 - \"%h\" is replaced by the host name
221 - \"%u\" is replaced by the user name 223 - \"%u\" is replaced by the user name
222 - \"%p\" is replaced by the port number 224 - \"%p\" is replaced by the port number
223 - \"%%\" can be used to obtain a literal percent character. 225 - \"%%\" can be used to obtain a literal percent character.
224 226
225 If a list containing \"%h\", \"%u\" or \"%p\" is unchanged 227 If a sub-list containing \"%h\", \"%u\" or \"%p\" is
226 during expansion (i.e. no host, no user or no port 228 unchanged after expansion (i.e. no host, no user or no port
227 specified), this list is not used as argument. By this, 229 were specified), that sublist is not used. For e.g.
228 arguments like (\"-l\" \"%u\") are optional. 230
231 '((\"-a\" \"-b\") (\"-l\" \"%u\"))
232
233 that means that (\"-l\" \"%u\") is used only if the user was
234 specified, and it is thus effectively optional.
235
236 Other expansions are:
229 237
230 - \"%l\" is replaced by the login shell `tramp-remote-shell' 238 - \"%l\" is replaced by the login shell `tramp-remote-shell'
231 and its parameters. 239 and its parameters.
232 - \"%t\" is replaced by the temporary file name produced with 240 - \"%t\" is replaced by the temporary file name produced with
233 `tramp-make-tramp-temp-file'. 241 `tramp-make-tramp-temp-file'.
234 - \"%k\" indicates the keep-date parameter of a program, if exists 242 - \"%k\" indicates the keep-date parameter of a program, if exists.
235 - \"%c\" adds additional `tramp-ssh-controlmaster-options' 243 - \"%c\" adds additional `tramp-ssh-controlmaster-options'
236 options for the first hop. 244 options for the first hop.
237 245