dotfiles/home-manager/scripts/ssh-fix-permissions.sh

4 lines
No EOL
115 B
Bash

#!/bin/bash
chmod 700 ~/.ssh
chmod 600 ~/.ssh/*
chmod 644 -f ~/.ssh/*.pub ~/.ssh/authorized_keys ~/.ssh/known_hosts