dotfiles/scripts/ssh-fix-permissions.sh

4 lines
115 B
Bash
Raw Normal View History

2023-05-03 01:25:19 +02:00
#!/bin/bash
chmod 700 ~/.ssh
chmod 600 ~/.ssh/*
chmod 644 -f ~/.ssh/*.pub ~/.ssh/authorized_keys ~/.ssh/known_hosts