📢 Webサイト閉鎖と移転のお知らせ
このWebサイトは2026年9月に閉鎖いたします。
新しい記事は移転先で追加しております。(旧サイトでは記事を追加しておりません)

75行目: 75行目:
       // 公開鍵にパスフレーズが無い場合
       // 公開鍵にパスフレーズが無い場合
       //var authMethod = new PrivateKeyAuthenticationMethod("<リモートPCのユーザ名>",
       //var authMethod = new PrivateKeyAuthenticationMethod("<リモートPCのユーザ名>",
                                                            new PrivateKeyFile(secretKeyPath, ""));
      //                                                    new PrivateKeyFile(secretKeyPath, ""));
   
   
       // パスワード認証の場合
       // パスワード認証の場合
       //var authMethod = new PasswordAuthenticationMethod("<リモートPCのユーザ名>",
       //var authMethod = new PasswordAuthenticationMethod("<リモートPCのユーザ名>",
                                                          "<リモートPCのユーザ名のパスワード>");
      //                                                  "<リモートPCのユーザ名のパスワード>");
   
   
       // 接続情報のインスタンス生成
       // 接続情報のインスタンス生成