OpenSSH 5.1p1 I can't grasp why, when connecting with 'ssh -Y' to this test host, I am not tickling the verbose() call below that I have added. I am logging as auth + verbose in sshd_config The X11 forward for the session works fine as tested with xterm. At any rate, I am looking for some guidance on where to log X11 forwards that are established, ideally with a username and remote display information, but whatever I can get, I'll take. Any help would be great. session.c: packet_check_eom(); success = session_setup_x11fwd(s); if (!success) { xfree(s->auth_proto); xfree(s->auth_data); s->auth_proto = NULL; s->auth_data = NULL; } else { verbose("jblaine testing : w00t? : %s", s->auth_display); }
On Thu, 5 Feb 2009, Jeff Blaine wrote:> OpenSSH 5.1p1 > > I can't grasp why, when connecting with 'ssh -Y' to this > test host, I am not tickling the verbose() call below that > I have added.I'm not sure why the verbose isn't triggering here, but:> At any rate, I am looking for some guidance on where > to log X11 forwards that are established, ideally with > a username and remote display information, but whatever > I can get, I'll take.You can achieve most of this by specifying a custom xauth program using sshd_config:XAuthLocation. It could be just a shell script that logs the parameters and the current user - no modifications to ssh necessary. -d
Really confused now. Neither w00t gets tickled but the X11 session is established fine. % strings /linus/tmp/jblaine/sbin/sshd | grep w00t jblaine testing : pre-w00t jblaine testing : w00t? : %s % % sudo /linus/tmp/jblaine/sbin/sshd -p 3333 -ddd 2>&1 | grep w00t % /* session.c */ ... debug2("jblaine testing : pre-w00t"); packet_check_eom(); success = session_setup_x11fwd(s); if (!success) { xfree(s->auth_proto); xfree(s->auth_data); s->auth_proto = NULL; s->auth_data = NULL; } else { debug2("jblaine testing : w00t? : %s", s->auth_display); } ... Jeff Blaine wrote:> OpenSSH 5.1p1 > > I can't grasp why, when connecting with 'ssh -Y' to this > test host, I am not tickling the verbose() call below that > I have added. > > I am logging as auth + verbose in sshd_config > > The X11 forward for the session works fine as tested with > xterm. > > At any rate, I am looking for some guidance on where > to log X11 forwards that are established, ideally with > a username and remote display information, but whatever > I can get, I'll take. > > Any help would be great. > > session.c: > > packet_check_eom(); > success = session_setup_x11fwd(s); > if (!success) { > xfree(s->auth_proto); > xfree(s->auth_data); > s->auth_proto = NULL; > s->auth_data = NULL; > } else { > verbose("jblaine testing : w00t? : %s", s->auth_display); > } >