LoginSignup
2

More than 5 years have passed since last update.

ユーザーの公開鍵の一覧をつくる

Posted at
ls -nd /home/* | sort -n -k 3,3 | awk '{ print $NF }' | while read user
do
    echo ${user}
    cat ${user}/.ssh/authorized_keys
done

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2