See How to use "$ssh->before()" and the answers you got there.
In reply to Re: after $ssh->before() by Corion in thread Reaped: after $ssh->before() by NodeReaper