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 秘密鍵作ってから変えたい項目有るじゃろ😁

0
Posted at

この記事の続き見たいな位置づけの📝
ホームディレクトリの .ssh 内に存在しおる秘密鍵に纏わる変更するコマンド類
じゃけ、作業される際にはバックアップをお忘れなく😱

秘密鍵(プライベートキー)のパスコード変更

ssh-keygen -p -f id_ecdsa_FreeBSD

秘密鍵から公開鍵(パブリックキー)生成

ssh-keygen -y -f id_ecdsa_FreeBSD

秘密鍵のコメント変更

ssh-keygen -c -C `env TZ=JST-09 date '+%Y%m%d'_``users`@`hostname` -f id_ecdsa_FreeBSD

秘密鍵のコメント確認方法

ssh-keygen -l -f id_ecdsa_FreeBSD

見りゃ判る引数達

-f 対象秘密鍵ファイル
-p パスコード変更
-y 公開鍵作成
-c コメント欄変更 小文字
-C コメント本文 大文字
-l コメント表示

コメントに関する引数で大文字と小文字で動きが変わるけん、注意されたし

結び

頻繁に使う事無い引数類じゃけ、覚えられんワシw
チョットした📝で使えるように書いてみた

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?