From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.help Subject: Re: Tramp and sftp Date: Fri, 21 Apr 2017 15:56:49 +0200 Message-ID: <87o9vpdftq.fsf@rosalinde> References: <8760hyhy5i.fsf@rosalinde> <8760hy7xvg.fsf@detlef> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1492783548 16537 195.159.176.226 (21 Apr 2017 14:05:48 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 21 Apr 2017 14:05:48 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Michael Albinus Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 21 16:05:39 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d1ZBr-00047X-2U for geh-help-gnu-emacs@m.gmane.org; Fri, 21 Apr 2017 16:05:39 +0200 Original-Received: from localhost ([::1]:59857 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d1ZBw-00033r-Og for geh-help-gnu-emacs@m.gmane.org; Fri, 21 Apr 2017 10:05:44 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54202) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d1Z3Q-0004y7-50 for help-gnu-emacs@gnu.org; Fri, 21 Apr 2017 09:56:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d1Z3M-0004wE-5G for help-gnu-emacs@gnu.org; Fri, 21 Apr 2017 09:56:56 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:55972) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d1Z3L-0004vi-Oz for help-gnu-emacs@gnu.org; Fri, 21 Apr 2017 09:56:52 -0400 Original-Received: from rosalinde ([83.135.17.101]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MZCUG-1civD339si-00L0yu; Fri, 21 Apr 2017 15:56:49 +0200 In-Reply-To: <8760hy7xvg.fsf@detlef> (Michael Albinus's message of "Fri, 21 Apr 2017 14:23:31 +0200") X-Provags-ID: V03:K0:2qBO+34qZVXtMy6OkRTduc8049Q/Cjqvv6zZD8yCpQJ2+viOLw4 t4Kb+PncDyQppzt3aHG2XJ1PUth4/YB85l7o7j0MTiT6hu3oCb6sN/g5jmA5ffJmnDD3iNS jbMoUTUjAa0hY80S+GLKDH+MwJmMALX1NqffgrQtSByZWAyogXJWEUftpIBtDnHwjYF+lgV 4Zm9mgU/YPPTGzRcQ3JXw== X-UI-Out-Filterresults: notjunk:1;V01:K0:EWoZcaBuTE0=:n6St3gqMukE435hGWmAXjt oYEh3xGKF151XMRZmCx9R4Yj3tEq6cT7TI8K9CXqZFXLg23nv56QENmJgi32YqSWzJUotpxOl EEmMf51+BZTk0w4sIE7TnQX4kEsW+D4Fn8mVj69VC0A0PSjskXuznPHi6d9zRFRFXb2hrGqDf 6rNUnaVIWx5zfKR4QNBKlKAUwZPxz8yMlxySgpz6SpYLi3JfQtgrQ8PKQ1ZI2SBxFugP8G6nq l/818Mb6PGchMQzpmgDZJIdIOWd+6+8DervCNTC9JYcuvyixcA7A00djmwpBmfAmjbOqC13H/ lFImsvJGpa+ikg9oaGbELynIQAiN77LLkcar3EuBb2pzqyax7/RIdZlYmMlABw6YL2Puz1jyT OVuz02a0xrMv2ZVCikXPAftPzcwag/13EZAsgSc5NfrNCDvtMkXYv3raaE5v8HA0jBQ1tiTBM 0WeYpvWoFshmXQ5vCgGOuBKldtcWGJYFaa4coslGs23ikxDlSytdZkv7X57DCi3CEHlqeeSf1 rn5ijwyCOkgoNKPtdD/H/iYNS62Bm+eU3GHDwiOgnfUXyeEHDZTEQOsaJ1Q/TwgI7z256yAZl acxryJu/KCuSJM/99zct688vutMrobjkNmVoWJTpwsjbO+afxzXeedGe3P6U7HuTtYa5cpa0x Ia+2kFLpBpA4C5AUxCr4DdZ1C11LlCIBmB65uyKpiYYqTjDDLA3UT8DFIJ/B1q4WKmIfceEmx VUokDyRqfnvVj5PWx2O0jylzaNCUrXtybouZQiOc7TmqRiQQ/VWq12C/eXd2yhcqUZ2YmxQY X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.15.18 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:112839 Archived-At: On Fri, 21 Apr 2017 14:23:31 +0200 Michael Albinus = wrote: > Stephen Berman writes: > > Hi Stephen, > >> For a long time I have been able to access a remote directory from Emacs >> via the sftp protocol with Tramp. I didn't pay any attention to how >> this worked, since it just did. > > In the past, the sftp protocol was implemented via tramp-sh.el. This > didn't work reliably, so this has been moved to tramp-gvfs.el starting > with Tramp 2.2.10. Emacs 24.5 is the first version which has bundled > this. It surprises me that sftp apparently works fine when invoked from bash but not with tramp-sh. Or could there also be problems from bash? >> But on a new system this has now >> failed, and the reason seems to be that, although the system has dbus >> installed, it has neither gvfs nor fuse, so the sftp invocation fails >> with the error "Package `tramp-gvfs' not supported" (from >> tramp-gvfs-file-name-handler). When I invoke sftp from the shell, it >> succeeds, so that protocol itself does not depend on gvfs or fuse. I >> tried removing sftp from tramp-gvfs-methods in the hope that this would >> make tramp avoid using gvfs, but it didn't and access again failed. I >> then tried rebuilding emacs --without-dbus, but this resulted in the >> message "Host =E2=80=98xxx.xxx.xx=E2=80=99 looks like a remote host, =E2= =80=98sftp=E2=80=99 can only use >> the local host". So is there some way to access a remote directory from >> Emacs via the sftp protocol without gvfs and fuse, > > No, this is not possible anymore. One fallback would be psftp, part of > the putty package. This package does exist also for GNU/Linux systems. > > The other possibility is to use ssh or scp methods for connection. They > don't need dbus and fuse. This is a host I don't have shell access to, it only accepts ftp. >> or must I install >> these and configure dbus accordingly? (And if the latter, I'd be >> grateful for any advice, since I've never done this; on the other system >> that was evidently done by the distribution, on the new system I build >> and configure all the packages myself.) > > Which system do you use? If it is a kind of GNU/Linux, the package > manager shall install them w/o further configuration need.=20 Yes, that's the case with openSUSE, which I've used for years. > If it is > something else I don't know what to do. I've been building a (GNU) Linux From Scratch system, which means I have to get my hands dirty; I guess I have to get them even dirtier ;-). Steve Berman