Created
December 16, 2014 12:17
-
-
Save y13i/806d981bd22d762e034c to your computer and use it in GitHub Desktop.
秘密鍵と公開鍵が一致するか確認するワンライナー
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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