aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2013-02-16 18:38:37 +0100
committerMichael Albinus2013-02-16 18:38:37 +0100
commit2150b4715f3c8963a13535e6b6085dc040396d53 (patch)
tree3891199c96d82e17d9d9423052a092c6257dfe47
parenta9bc03e28e99ca44a7e009de25fa7084aec4c60c (diff)
downloademacs-2150b4715f3c8963a13535e6b6085dc040396d53.tar.gz
emacs-2150b4715f3c8963a13535e6b6085dc040396d53.zip
* tramp.texi (Top, Configuration): Insert section `Android shell
setup' in menu. (Android shell setup): New section. (Connection types, Default Method) (Frequently Asked Questions): Mention "scp" instead of "scpc". (External methods): Remove "scpc" and "rsyncc" entries. (Frequently Asked Questions): Remove entry about ControlPersist.
-rw-r--r--doc/misc/ChangeLog10
-rw-r--r--doc/misc/tramp.texi120
2 files changed, 64 insertions, 66 deletions
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog
index dd3c0ccd1e2..d24f2b593d4 100644
--- a/doc/misc/ChangeLog
+++ b/doc/misc/ChangeLog
@@ -1,3 +1,13 @@
12013-02-16 Michael Albinus <michael.albinus@gmx.de>
2
3 * tramp.texi (Top, Configuration): Insert section `Android shell
4 setup' in menu.
5 (Android shell setup): New section.
6 (Connection types, Default Method)
7 (Frequently Asked Questions): Mention "scp" instead of "scpc".
8 (External methods): Remove "scpc" and "rsyncc" entries.
9 (Frequently Asked Questions): Remove entry about ControlPersist.
10
12013-02-13 Glenn Morris <rgm@gnu.org> 112013-02-13 Glenn Morris <rgm@gnu.org>
2 12
3 * message.texi (News Headers): Don't mention yow any more. 13 * message.texi (News Headers): Don't mention yow any more.
diff --git a/doc/misc/tramp.texi b/doc/misc/tramp.texi
index cfa3f84bda1..64b5ea40f24 100644
--- a/doc/misc/tramp.texi
+++ b/doc/misc/tramp.texi
@@ -188,8 +188,9 @@ Configuring @value{tramp} for use
188* Connection caching:: Reusing connection related information. 188* Connection caching:: Reusing connection related information.
189* Remote Programs:: How @value{tramp} finds and uses programs on the remote machine. 189* Remote Programs:: How @value{tramp} finds and uses programs on the remote machine.
190* Remote shell setup:: Remote shell setup hints. 190* Remote shell setup:: Remote shell setup hints.
191* Windows setup hints:: Issues with Cygwin ssh. 191* Android shell setup:: Android shell setup hints.
192* Auto-save and Backup:: Auto-save and Backup. 192* Auto-save and Backup:: Auto-save and Backup.
193* Windows setup hints:: Issues with Cygwin ssh.
193 194
194Using @value{tramp} 195Using @value{tramp}
195 196
@@ -515,6 +516,7 @@ Method}.
515* Connection caching:: Reusing connection related information. 516* Connection caching:: Reusing connection related information.
516* Remote Programs:: How @value{tramp} finds and uses programs on the remote machine. 517* Remote Programs:: How @value{tramp} finds and uses programs on the remote machine.
517* Remote shell setup:: Remote shell setup hints. 518* Remote shell setup:: Remote shell setup hints.
519* Android shell setup:: Android shell setup hints.
518* Auto-save and Backup:: Auto-save and Backup. 520* Auto-save and Backup:: Auto-save and Backup.
519* Windows setup hints:: Issues with Cygwin ssh. 521* Windows setup hints:: Issues with Cygwin ssh.
520@end menu 522@end menu
@@ -557,9 +559,10 @@ startup may drown out the improvement in file transfer times.
557External methods should be configured such a way that they don't 559External methods should be configured such a way that they don't
558require a password (with @command{ssh-agent}, or such alike). Modern 560require a password (with @command{ssh-agent}, or such alike). Modern
559@command{scp} implementations offer options to reuse existing 561@command{scp} implementations offer options to reuse existing
560@command{ssh} connections, see method @command{scpc}. If it isn't 562@command{ssh} connections, which will be enabled by default if
561possible, you should consider @ref{Password handling}, otherwise you 563available. If it isn't possible, you should consider @ref{Password
562will be prompted for a password every copy action. 564handling}, otherwise you will be prompted for a password every copy
565action.
563 566
564 567
565@node Inline methods 568@node Inline methods
@@ -867,51 +870,6 @@ to not print any shell prompt, which confuses @value{tramp} mightily.
867This method supports the @samp{-p} argument. 870This method supports the @samp{-p} argument.
868 871
869 872
870@item @option{scpc}---@command{ssh} and @command{scp}
871@cindex method scpc
872@cindex scpc method
873@cindex scp (with scpc method)
874@cindex ssh (with scpc method)
875
876Newer versions of @option{ssh} (for example OpenSSH 4) offer an option
877@option{ControlMaster}. This allows @option{scp} to reuse an existing
878@option{ssh} channel, which increases performance.
879
880Before you use this method, you should check whether your @option{ssh}
881implementation supports this option. Try from the command line
882
883@example
884ssh localhost -o ControlMaster=yes /bin/true
885@end example
886
887If that command succeeds silently, then you can use @option{scpc}; but
888if it fails like
889
890@example
891command-line: line 0: Bad configuration option: ControlMaster
892@end example
893
894then you cannot use it. Note, that the option
895@option{ControlPersist}, if it is supported by your @option{ssh}
896version, must be set to @option{no}.
897
898This method supports the @samp{-p} argument.
899
900
901@item @option{rsyncc}---@command{ssh} and @command{rsync}
902@cindex method rsyncc
903@cindex rsyncc method
904@cindex rsync (with rsyncc method)
905@cindex ssh (with rsyncc method)
906
907Like the @option{scpc} method, @option{rsyncc} improves the underlying
908@command{ssh} connection by the option @option{ControlMaster}. This
909allows @command{rsync} to reuse an existing @command{ssh} channel,
910which increases performance.
911
912This method supports the @samp{-p} argument.
913
914
915@item @option{pscp}---@command{plink} and @command{pscp} 873@item @option{pscp}---@command{plink} and @command{pscp}
916@cindex method pscp 874@cindex method pscp
917@cindex pscp method 875@cindex pscp method
@@ -1240,7 +1198,7 @@ user, see the @option{su} or @option{sudo} methods. They offer
1240shortened syntax for the @samp{root} account, like 1198shortened syntax for the @samp{root} account, like
1241@file{@trampfn{su, , , /etc/motd}}. 1199@file{@trampfn{su, , , /etc/motd}}.
1242 1200
1243People who edit large files may want to consider @option{scpc} instead 1201People who edit large files may want to consider @option{scp} instead
1244of @option{ssh}, or @option{pscp} instead of @option{plink}. These 1202of @option{ssh}, or @option{pscp} instead of @option{plink}. These
1245external methods are faster than inline methods for large files. 1203external methods are faster than inline methods for large files.
1246Note, however, that external methods suffer from some limitations. 1204Note, however, that external methods suffer from some limitations.
@@ -1343,7 +1301,7 @@ Like with methods and users, you can also specify different default
1343hosts for certain method/user combinations via the variable 1301hosts for certain method/user combinations via the variable
1344@code{tramp-default-host-alist}. Usually, this isn't necessary, 1302@code{tramp-default-host-alist}. Usually, this isn't necessary,
1345because @code{tramp-default-host} should be sufficient. For some 1303because @code{tramp-default-host} should be sufficient. For some
1346methods, like @code{adb}, that default value must be overwritten, 1304methods, like @option{adb}, that default value must be overwritten,
1347which is already the initial value of @code{tramp-default-host-alist}. 1305which is already the initial value of @code{tramp-default-host-alist}.
1348 1306
1349@noindent 1307@noindent
@@ -2047,6 +2005,50 @@ fi
2047@end table 2005@end table
2048 2006
2049 2007
2008@node Android shell setup
2009@section Android shell setup hints
2010@cindex android shell setup
2011
2012Android devices use a restricted shell. They can be accessed via the
2013@option{adb} method. However, this restricts the access to a USB
2014connection, and it requires the installation of the Android SDK on the
2015local machine.
2016
2017When an @command{sshd} process runs on the Android device, like
2018provided by the @code{SSHDroid} app, any @option{ssh}-based method can
2019be used. However, this requires some special settings.
2020
2021The default shell @code{/bin/sh} does not exist. Instead, you shall
2022use just @code{sh}, which invokes the shell installed on the device.
2023You can instruct @value{tramp} by this form:
2024
2025@lisp
2026(add-to-list 'tramp-connection-properties
2027 (list (regexp-quote "192.168.0.26") "remote-shell" "sh"))
2028@end lisp
2029
2030@noindent
2031with @samp{192.168.0.26} being the IP address of your Android device.
2032
2033The user settings for the @code{$PATH} environment valiable must be
2034preserved. Add this setting:
2035
2036@lisp
2037(add-to-list 'tramp-remote-path 'tramp-own-remote-path)
2038@end lisp
2039
2040If the Android device is not @samp{rooted}, you must give the shell a
2041writable directory for temporary files. You could use this setting:
2042
2043@lisp
2044(add-to-list 'tramp-remote-process-environment "TMPDIR=$HOME")
2045@end lisp
2046
2047Now you shall be able to open a remote connection with @kbd{C-x C-f
2048@trampfn{ssh, , 192.168.0.26#2222, }}, given that @command{sshd}
2049listens on port @samp{2222}.
2050
2051
2050@node Auto-save and Backup 2052@node Auto-save and Backup
2051@section Auto-save and Backup configuration 2053@section Auto-save and Backup configuration
2052@cindex auto-save 2054@cindex auto-save
@@ -2942,7 +2944,7 @@ host as well as the time needed to perform the operations there count.
2942In order to speed up @value{tramp}, one could either try to avoid some 2944In order to speed up @value{tramp}, one could either try to avoid some
2943of the operations, or one could try to improve their performance. 2945of the operations, or one could try to improve their performance.
2944 2946
2945Use an external method, like @option{scpc}. 2947Use an external method, like @option{scp}.
2946 2948
2947Use caching. This is already enabled by default. Information about 2949Use caching. This is already enabled by default. Information about
2948the remote host as well as the remote files are cached for reuse. The 2950the remote host as well as the remote files are cached for reuse. The
@@ -3068,20 +3070,6 @@ Host *
3068 3070
3069 3071
3070@item 3072@item
3071How can I use @samp{ControlPersist}?
3072
3073When @samp{ControlPersist} is set to @samp{yes}, the @option{scpc}
3074method does not work. You can use @option{scpx} instead with the
3075following settings in @file{~/.ssh/config}:
3076
3077@example
3078Host *
3079 ControlMaster auto
3080 ControlPersist yes
3081@end example
3082
3083
3084@item
3085File name completion does not work with @value{tramp} 3073File name completion does not work with @value{tramp}
3086 3074
3087When you log in to the remote machine, do you see the output of 3075When you log in to the remote machine, do you see the output of