the second call doesn't work:
$sftp = new Net_SFTP('domain1', 22);
var_dump($sftp->login('username1', 'password1'));
unset ($sftp);
$sftp2 = new Net_SFTP('domain2', 22);
var_dump($sftp2->login('username2', 'password2'));
when i do the second call without the first one, it works perfectly.
this is the error the second call produce:
Notice: Invalid HMAC in C:\WT-NMP\WWW\lib\phpseclib\Net\SSH2.php on line 3048
...
Notice: Connection closed by server in C:\WT-NMP\WWW\lib\phpseclib\Net\SSH2.php on line 2015