Get remote address when using direct-streamlocal at openssh.com.
stefbon at gmail.com
Fri Jun 2 16:15:50 AEST 2017
I can create something what works: the client has the ability to
create a channel using the same ssh session with the server,
and can execute commands. When the client has a connection with the
server using the direct-streamlocal mechanism,
it can also create a file on the server by running something like:
set > /tmp/sshd_set_%PPID%
the parent pid is the same pid my serverprocess reads when reading the
peer socket credentials.
My serverprocess waits for the existence of this file, and when
detected, it reads the environmentvariables
This will work, but is very constructed. might there be another easier way?
Thanks in advance.
More information about the openssh-unix-dev