Vahid Ghafarpour's Blog

نكات جالب از نظر وحيد غفارپور!

Tuesday, January 16, 2007

Log ssh and sshd sessions

add your variables in include.h
add your logger in sshd
function:auth_password file:auth-passwd.c
pw->pw_name is user name and NOUSER if not your passwd username
authctxt->user is username requested by client

add your logger in ssh client
function ssh_userauth1
file sshconnect1.c
for version one (without password)

function userauth_passwd
file sshconnect2.c

and optional also you can use in
function input_userauth_passwd_changereq
file sshconnect2.c

Labels: ,

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home