0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

ssh 公開鍵作る時のコメントに「何の?」鍵か自分で解るようにする😱

Last updated at Posted at 2023-10-26
Page 1 of 7
忘備録でお勧めせんが参考程度にw

想定環境変数はこれ等

USER=je3kmz
HOSTNAME=HOGEHOGE.example.nft

makekey
ssh-keygen -t ed25519 -C \
`env TZ=JST-09 date '+%Y%m%d'_``users`@`hostname`
結果
ssh-ed25519 AAAA... 20231026_je3kmz@HOGEHOGE.example.nft

ssh-keygen のオプション説明

-t 鍵の種類 -> そこそこ新しめのん
-C コメント -> ココが今回のポイント👏


何時のカギなん🤔

幾つもの鍵を作りおるのは、日常茶飯事じゃが、何時作成したかをタイムスタンプに頼らず確認する方法で、


コメントを書くスイッチを入れ忘れた正体不明の鍵の扱いが、我流管理(未管理とも)していたのを、この記事で少しは整頓が出来て、


鍵の選別が容易になったけん、記事として纏めちゃった。

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?