From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.help Subject: Re: Tramp and sftp Date: Fri, 21 Apr 2017 14:23:31 +0200 Message-ID: <8760hy7xvg.fsf@detlef> References: <8760hyhy5i.fsf@rosalinde> 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 1492777869 27407 195.159.176.226 (21 Apr 2017 12:31:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 21 Apr 2017 12:31:09 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Stephen Berman Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 21 14:31:05 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 1d1XiL-0006ut-0s for geh-help-gnu-emacs@m.gmane.org; Fri, 21 Apr 2017 14:31:05 +0200 Original-Received: from localhost ([::1]:58984 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d1XiL-0004qZ-Hd for geh-help-gnu-emacs@m.gmane.org; Fri, 21 Apr 2017 08:31:05 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52660) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d1Xb8-0007Fy-PP for help-gnu-emacs@gnu.org; Fri, 21 Apr 2017 08:23:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d1Xb5-0007jY-Lp for help-gnu-emacs@gnu.org; Fri, 21 Apr 2017 08:23:38 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:61754) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d1Xb5-0007iz-Ar for help-gnu-emacs@gnu.org; Fri, 21 Apr 2017 08:23:35 -0400 Original-Received: from detlef.gmx.de ([87.146.53.217]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LgZ7h-1cFman19u9-00nzDg; Fri, 21 Apr 2017 14:23:32 +0200 In-Reply-To: <8760hyhy5i.fsf@rosalinde> (Stephen Berman's message of "Fri, 21 Apr 2017 12:07:21 +0200") X-Provags-ID: V03:K0:mNKhyxwUA0zJKRg8MY7XJSJAh5U/Y2bBvpQYRsB1GrtJA9HsPcs 8DFd/DyxOUqik2VMpWNCve0uZ1snIUKM6yXNioHKZqXabSzbDc/u549mQziGIkvXdiqJuhE vPFpugmrBFj+NftmJNwDJ0h8SQmjN8FHvE9oTOCdYys7q0K1B4gFutln6StFFFeTgLJx4tP bHxhz7YQgfCIZNa1gGxhA== X-UI-Out-Filterresults: notjunk:1;V01:K0:xla5NtdYZ/c=:mU2mg/52nTopSOmyVDKDuG ia38aWYFpevHvWvk8MUW+ARn5Obg681oXPSyRPyns/IrOKEzRL488xaYOhuedI3/eMuUSioRT RbwHlhUgz5PP2DNm4hjtEfiyCYqvsDrb5LelZDrtspKh4fFxYUD7xwG8Ywwya5jpC3Mb+K6t0 TXplfhAb4JR0Ey6XIe0sZ0q46Z7L4wcaDL4pVjBlAKYpqxY/BPCjxlsOXbT/YfwIFM9toUFhD W6XakuOJN+nTBw1r7RtN222Zoyq19UpAIYMfV6X6SKc6RW1G8sv5ZoEDhBfa1M9RxOR6ifl1K 6hW5qEjtnJGLYeX1Gg9tsURLQAb2kRKyvPR/QBrPCk/acQoBpEhFQf6QBDYabpwBDd4+zgccv 0Sp5RpviBrGnnHeQrghWaxzbkv0jXHN/wygwXcWEP5JuM2Vbf9Tuo82AuGdFTn1FngHp0DVTl 7Zi5sg9ziKYy008xGM5kYbvvQjGUxcAWH12oQ4n9FIhlH8uZ+uSO73vJxzSKVdkpquEUwDBiT 7P5un9DxCgsmn0IXCIK/s+Xd1b8FMXKbBh0BvGq8V4Drll3HvZvAtd0ClBBjY82NRiAbsJLkp Qwq2IuaHweaoMfI6Y0F3XnxvUK/k3guNnmVQTz+7AW8mD37gyRtsA0Bso6AzTEyqwkCCQndY1 fYYlditP5eMFfOww5EV+1SddU+otiPsxDwsJRTbl9+BdfGug7xzs0Mq/v9a5xPo60WOUATgyX xqI5yDoaDdgP1j7+SkHvbOCT+qIap/WnpLYW+Gn26ji1dGKhQjikv/AU0iTI0JNuHFR2i05E X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.17.22 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:112836 Archived-At: 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. > 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. > 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. If it is something else I don't know what to do. > Steve Berman Best regards, Michael.