Skip to content

Instantly share code, notes, and snippets.

@motchang
Created April 14, 2015 02:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save motchang/da42eedaf1ab58d47d42 to your computer and use it in GitHub Desktop.
Save motchang/da42eedaf1ab58d47d42 to your computer and use it in GitHub Desktop.
ユーザーの公開鍵の一覧をつくる ref: http://qiita.com/motchang/items/cc1e979a2d1c712bc741
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