bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#53847: 28.0.91; Tramp SSHFS: incorrect remote home directory


From: Philipp Stephani
Subject: bug#53847: 28.0.91; Tramp SSHFS: incorrect remote home directory
Date: Fri, 18 Mar 2022 17:53:32 +0100

Am Do., 10. März 2022 um 12:37 Uhr schrieb Michael Albinus
<michael.albinus@gmx.de>:
>
> Michael Albinus <michael.albinus@gmx.de> writes:
>
> Hi Philipp,
>
> >> Thanks, but would it maybe be possible to find a better solution? I've
> >> been using SSHFS for a while now, and this particular issue is pretty
> >> annoying in practice. How about any of the following:
> >> - When connecting over SSHFS, ask the remote host (via SSH) for the
> >> home directory and cache the result.
> >> - Allow the user to configure a per-host static home directory (i.e.
> >> just a customizable mapping from hosts + users to home directories). I
> >> regularly only connect to 2 hosts with known hostnames and home
> >> directories, so at least for me maintaining such a mapping would be
> >> feasible.
> >> WDYT?
> >
> > Tramp uses already a cached value for the home directory, under the key
> > "~". You could try the following:
> >
> > (add-to-list 'tramp-connection-properties
> >              (list (regexp-quote "/sshfs:user@randomhost.your.domain:")
> >                    "~" "/home/user"))
> >
> > It is untested, and you need a fresh git checkout of master. Please
> > report whether it works; I would add the recipe to the manual then.
>
> Well, it didn't work out of the box. So I've pushed a fix to the master
> branch in order to support this. Note, that you need the connection
> property "~user", with "user" being your remote user name.

Thanks, I'll try this out for a while to see whether it works for me.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]