RsD0p9BK
8/22/2016 - 11:04 AM

ssh__permission.sh

# Fixing “WARNING: UNPROTECTED PRIVATE KEY FILE!” on Linux

sudo chmod 755 ~/.ssh;

sudo chmod 600 ~/.ssh/authorized_keys

sudo chmod 600 ~/.ssh/id_rsa;
sudo chmod 600 ~/.ssh/id_rsa.pub;

sudo chmod 644 ~/.ssh/known_hosts;


# http://www.howtogeek.com/168119/fixing-warning-unprotected-private-key-file-on-linux/
# https://stackoverflow.com/a/33708140/2618535