Mailing List Archive

forwarded unix-domain socket relative paths
Hi all--

when i'm sshing to a remote host as a normal user, i might want to use
remoteforward to set up a unix-domain socket that is associated with my
user account.

The common places to do that as a non-privileged user would be either in
my remote homedir or in $XDG_RUNTIME_DIR (if that is available on the
remote hosts).

I can't figure out how to do either of those without hardcoding my
expected remote path in a host-specific stanza in my local
~/.ssh_config.

If there's a regular socket forward that i want to set up from, say,
~/.foo on the remote system, it would be nice to not have to know
exactly what my homedir is on that system, so i could use a generic
RemoteForward line in my ~/.ssh_config that applies to multiple hosts.

Anyway, i've opened this report in the hopes that this idea doesn't get
lost:

https://bugzilla.mindrot.org/show_bug.cgi?id=3018

But i don't see a way to do it without adjusting (or augmenting) the
'localforward' wire protocol extension itself.

If anyone has any other suggestions, please chime in on either that
ticket or here on the list.

All the best,

--dkg