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?

More than 1 year has passed since last update.

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

Last updated at Posted at 2023-10-26
Page 1 of 4

忘備録でお勧めせんが参考程度に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 AAAAC3NzaC1lZDI1NTE5AAAAIGNKzCslkyqd07+V+/czxII2qLBmTYC/WbxQp9xJ4rxS 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?