Created
April 14, 2015 02:41
-
-
Save motchang/da42eedaf1ab58d47d42 to your computer and use it in GitHub Desktop.
ユーザーの公開鍵の一覧をつくる ref: http://qiita.com/motchang/items/cc1e979a2d1c712bc741
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
ls -nd /home/* | sort -n -k 3,3 | awk '{ print $NF }' | while read user | |
do | |
echo ${user} | |
cat ${user}/.ssh/authorized_keys | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment