forwarded unix-domain socket relative paths

Daniel Kahn Gillmor dkg at
Thu Jun 6 02:05:57 AEST 2019

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

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

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,

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: <>

More information about the openssh-unix-dev mailing list