This file contains hidden or 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
#!/usr/bin/env bash | |
# Менять порядок строк не рекомендуется! | |
ssh_dir=~/.ssh | |
find $ssh_dir -name "*_*" -exec chmod 600 {} \; | |
find $ssh_dir -name "*_*.pub" -exec chmod 644 {} \; | |
chmod 644 $ssh_dir/authorized_keys $ssh_dir/known_hosts $ssh_dir/config | |
chmod 700 $ssh_dir |