パスワード認証と公開鍵認証の両方を使用してSFTP接続を確立する var connectionInfo = new ConnectionInfo("sftp.foo.com", "guest", new PasswordAuthenticationMethod("guest", "pwd"), new PrivateKeyAuthenticationMethod("rsa.key")); using (var client = new SftpClient(connectionInfo)) { client.Connect(); } 参考 github.com