(PuTTYユーザマニュアルの日本語訳) 6.3 PSFTPで公開キー認証を使う - 6.3 Using public key authentication with PSFTP

http://the.earth.li/~sgtatham/putty/0.60/htmldoc/Chapter6.html#psftp-pubkeyの日本語訳。<< 6.2 PSFTPを実行する - 目次に戻る - 7章: コマンドライン接続ツールPlinkを使う >>

訳文

PSFTPの認証では、PuTTYと同様、パスワードの代わりに公開キーを使うことができます。公開キーを使うには、三つの方法があります。

Like PuTTY, PSFTP can authenticate using a public key instead of a password. There are three ways you can do this.

一つ目の方法は、PSFTPでホスト名の代わりにPuTTY保存セッションを使う方法です。以下の手順で行います。

Firstly, PSFTP can use PuTTY saved sessions in place of hostnames. So you might do this:

  • PuTTYを起動し、PuTTY保存セッション(4.1.2節参照)を作成します。セッションの作成時に、秘密キーファイル(4.20.7節参照)を指定します。ログインユーザ名の指定もできます(4.14.1節参照)。
  • PSFTPでホスト名の代わり作成したセッションを使います。psftp sessionnameと入力してください。sessionnameは保存セッションの名前で置き換えてください。
  • Run PuTTY, and create a PuTTY saved session (see section 4.1.2) which specifies your private key file (see section 4.20.7). You will probably also want to specify a username to log in as (see section 4.14.1).
  • In PSFTP, you can now use the name of the session instead of a hostname: type psftp sessionname, where sessionname is replaced by the name of your saved session.

二番目の方法は、コマンドラインで-iオプションを使用して秘密キーファイルの名前を指定する方法です。詳細は3.8.3.18節を参照してください。

Secondly, you can supply the name of a private key file on the command line, with the -i option. See section 3.8.3.18 for more information.

三番目の方法は、Pgeantを使用して認証する方法です。Pageantが起動している場合(9章参照)、PSFTPPageantでの認証を試みます。

Thirdly, PSFTP will attempt to authenticate using Pageant if Pageant is running (see chapter 9). So you would do this:

  • Pageantが起動しており、Pageant中に秘密キーが記憶されていることを確認してください。
  • PSFTPでユーザとホスト名を通常通り指定してください。PSFTPは自動的にPageantを検出し、Pageant中に記憶されている秘密キーを使用します。
  • Ensure Pageant is running, and has your private key stored in it.
  • Specify a user and host name to PSFTP as normal. PSFTP will automatically detect Pageant and try to use the keys within it.

公開キー認証に関するより一般的な情報は、8章を参照してください。

For more general information on public-key authentication, see chapter 8.

<< 6.2 PSFTPを実行する - 目次に戻る - 7章: コマンドライン接続ツールPlinkを使う >>