Skip to content

Instantly share code, notes, and snippets.

@y13i
Created December 16, 2014 12:17
Show Gist options
  • Save y13i/806d981bd22d762e034c to your computer and use it in GitHub Desktop.
Save y13i/806d981bd22d762e034c to your computer and use it in GitHub Desktop.
秘密鍵と公開鍵が一致するか確認するワンライナー
test `ssh-keygen -y -f id_rsa | cut -f 2 -d " "` = `cat id_rsa.pub | cut -f 2 -d " "` ; echo $?
# 0なら一致
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment