[PATCH] allow relative path in streamlocal forwarding

Stef Bon stefbon at gmail.com
Wed Jun 21 19:21:05 AEST 2017

2017-06-16 18:17 GMT+02:00 Daiki Ueno <dueno at redhat.com>:
> When forwarding a Unix-domain socket, the remote socket path must be
> absolute (otherwise the forwarding fails later).  However, guessing
> absolute path on the remote end is sometimes not straightforward,
> because the file system location may vary for many reasons, including
> the system installation, the choices of NFS mount points, or the
> remote user ID.

You can put a lot into openssh, but isn't this a bit too much?
ssh is a transport protocol, and nothing more.

Make openssh expanding paths is not the task of the openssh daemons in
my opinion.
Better would be if you have a session to a remote host, run a script
on the reomote host
to get the result.
The reply should be the path to the socket. Close the

I'm working on a sftp client and sftp server for linux, using the same
streamlocal method to connect to a socket on the server.
This works very nice.

Stef Bon
the Netherlands

More information about the openssh-unix-dev mailing list