I know there are simple commands to login to remote machine through VBA i.e. by specifying User@hostname and -pw option to provide the password in
User@hostname
-pw
Use the -i switch to specify the private key.
putty.exe username@example.com -i mykey.ppk
See PuTTY command line documentation.