Displaying 1 result from an estimated 1 matches for "ssh_local_ip".
2002 Sep 04
4
Determining Local IP Address within .profile
...which interface the client has connected to.
I've looked at the sourcecode and maybe the following could do something I described :
session.c:871 RCSID("$OpenBSD: session.c,v 1.142 2002/06/26 13:49:26 deraadt Exp $");
do_setup_env
child_set_env(&env, &envsize, "SSH_LOCAL_IP", get_local_ipaddr(packet_get_connection_in());
what do you think of it ?
thanx, mario