Lista usuarios con acceso SSH Key File en tu servidor

#!/bin/bash for X in $(cut -f6 -d ':' /etc/passwd |sort |uniq); do for suffix in "" "2"; do if [ -s "${X}/.ssh/authorized_keys$suffix" ]; then echo "### ${X}: " cat "${X}/.ssh/authorized_keys$suffix" echo "" fi; done; done

Add new comment