Embed Notice
HTML Code
Corresponding Notice
- Embed this notice@hal_pomeranz for user in `find /home/ -maxdepth 1 -type d`
do
mkdir $user/.ssh
touch $user/.ssh/authorized_keys
done
It's not pretty, and not really a one liner and I'm user someone who knows xargs better than me could do it with piping the find command. But making the file owned by root will let only me use it unless I need the user to be able to use it.
This is if I wanna do it in an emergency, and if I wanted to do this longterm, I'd just edit /etc/ssh/sshd_config