Skip to content

Instantly share code, notes, and snippets.

@josepsmartinez
Last active October 3, 2021 15:49
Show Gist options
  • Save josepsmartinez/602a98a39006830ec5f887718ab2a89c to your computer and use it in GitHub Desktop.
Save josepsmartinez/602a98a39006830ec5f887718ab2a89c to your computer and use it in GitHub Desktop.
ssh permissions
#!/bin/bash
# Configs
chmod 700 $HOME/.ssh
chmod 644 $HOME/.ssh/authorized_keys
chmod 644 $HOME/.ssh/known_hosts
chmod 644 $HOME/.ssh/config
# Keys
chmod 600 $HOME/.ssh/id_rsa
chmod 644 $HOME/.ssh/id_rsa.pub
# ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment