Skip to content

Instantly share code, notes, and snippets.

@rkaneko
Last active December 26, 2015 09:59
Show Gist options
  • Save rkaneko/7133042 to your computer and use it in GitHub Desktop.
Save rkaneko/7133042 to your computer and use it in GitHub Desktop.
Setting ssh . Confirm hash .

how to use openssl command

公開鍵のコピペは改行コードなどが入る場合があるので、危険。

md5 や sha1 ハッシュをつくるアルゴリズム等でlocalとserverで公開鍵を比較して、ハッシュ値と文字列長が合ってればおk 公開鍵フィンガープリントを表示したりしてもよいかも。

ex)

openssl md5 ./.ssh/authorized_keys

別のはまりポイント ・公開鍵の長さ

LOGレベルをDEBUGー>INFOにする strict modeはそのままで良い(chmodの件で怒られたりする。)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment