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

71行目: 71行目:
       // 公開鍵にパスフレーズが存在する場合
       // 公開鍵にパスフレーズが存在する場合
       var authMethod = new PrivateKeyAuthenticationMethod("<リモートPCのユーザ名>",
       var authMethod = new PrivateKeyAuthenticationMethod("<リモートPCのユーザ名>",
                                                           new PrivateKeyFile(secretKeyPath, "finger_print"));
                                                           new PrivateKeyFile(secretKeyPath, "<パスフレーズ>"));
   
   
       // 公開鍵にパスフレーズが無い場合
       // 公開鍵にパスフレーズが無い場合
       //var authMethod = new PrivateKeyAuthenticationMethod("<リモートPCのユーザ名>",
       //var authMethod = new PrivateKeyAuthenticationMethod("<リモートPCのユーザ名>",
                                                             new PrivateKeyFile(secretKeyPath));
                                                             new PrivateKeyFile(secretKeyPath, ""));
   
   
       // パスワード認証の場合
       // パスワード認証の場合
172行目: 172行目:
       // 公開鍵にパスフレーズが存在する場合
       // 公開鍵にパスフレーズが存在する場合
       var authMethod = new PrivateKeyAuthenticationMethod("<リモートPCのユーザ名>",
       var authMethod = new PrivateKeyAuthenticationMethod("<リモートPCのユーザ名>",
                                                           new PrivateKeyFile(secretKeyPath, "finger_print"));
                                                           new PrivateKeyFile(secretKeyPath, "<パスフレーズ>"));
   
   
       // 公開鍵にパスフレーズが無い場合
       // 公開鍵にパスフレーズが無い場合
       //var authMethod = new PrivateKeyAuthenticationMethod("<リモートPCのユーザ名>",
       //var authMethod = new PrivateKeyAuthenticationMethod("<リモートPCのユーザ名>",
                                                             new PrivateKeyFile(secretKeyPath));
                                                             new PrivateKeyFile(secretKeyPath, ""));
   
   
       // パスワード認証の場合
       // パスワード認証の場合