36
34

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ssh-addで記憶した鍵を登録削除したい場合

Last updated at Posted at 2016-01-21
  • 席立つときやcronでssh-add -Dするのも良いですね。

ssh-add

usage
usage: ssh-add [options] [file ...]
Options:
  -l          List fingerprints of all identities.
  -E hash     Specify hash algorithm used for fingerprints.
  -L          List public key parameters of all identities.
  -k          Load only keys and not certificates.
  -c          Require confirmation to sign using identities
  -t life     Set lifetime (in seconds) when adding identities.
  -d          Delete identity.
  -D          Delete all identities.
  -x          Lock agent.
  -X          Unlock agent.
  -s pkcs11   Add keys from PKCS#11 provider.
  -e pkcs11   Remove keys provided by PKCS#11 provider.

-t

  • 記憶する時間(秒)を指定

-l

  • 記憶した鍵の登録一覧表示
  • -L詳細に表示

-D

  • 記憶した秘密鍵の登録を削除
  • -dで個別に削除できる

-x

  • パスワードを入力
  • -Xするまでssh-addしたものを使用しない。
  • -X-x時に設定したパスワードと一致するとssh-addしたもの使う。
36
34
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
36
34

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?