add a hook for ssh