Re: Get remote address when using direct-streamlocal@xxxxxxxxxxx.

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

 



Hi,

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
like SSH_CLIENT.

This will work, but is very constructed. might there be another easier way?
Thanks in advance.

Stef
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev



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

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux