I highly doubt the sshd on the box is compromised and delivers exploits for putty (assuming you use putty).
I'd more guess your malware was already installed and got active when you connected.
I recommend you re-install your operating system.
If you like you can try to reproduce the infection.
Greetings
gizmore
The geeks shall inherit the properties and methods of object earth.