You should use the SftpClient constructor that takes a ConnectionInfo:
Gert
var authenticationMethods =
{
new PasswordAuthenticationMethod("user", "pwd"),
new PrivateKeyAuthenticationMethod("user", "key.pem")
};
using (var client = new SftpClient(new ConnectionInfo("host", 22, "user", authenticationMethods)))
{
...
}
Cheers,Gert