Correct file permissions for ssh keys and config.

#generate-ssh-key.sh
ssh-keygen -t rsa -b 4096 -N '' -C "shell@danyal.dk" -f ~/.ssh/id_rsa
#ssh-key-add.sh
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa
#ssh-key-permissions.sh
chmod 700 ~/.ssh
chmod 644 ~/.ssh/authorized_keys
chmod 644 ~/.ssh/known_hosts
chmod 644 ~/.ssh/config
chmod 600 ~/.ssh/id_rsa
chmod 644 ~/.ssh/id_rsa.pub
Author: Danyal
I'm skilled programmer with expertise in Vue.js/Nux.js for front-end development and PHP Laravel for back-end development. I excel in building APIs and services, and also have experience in web server setup & maintenance. My versatile skill set allows you to develop and maintain web applications effectively, from the user interface to the server-side functionality. I love coding with never ending learning attitude, thanks for visiting danya.dk