As you said I checked the code, and yes the Login method was commented..
I uncommented it, and only two parameters were being passed, i.e, 'username and password'.
And on running the service, following log was written :
"Authentication was partially successful, but server requires additional authentication with: 'publickey'."
The Login constructor accepts a third parameter also, which is but a SshPrivatekey type.