Assalamualaikum wbt and greeting everyone! I’ve had the same ssh keys for years. I just rsync them to a new system when I get one. The problem is I always seem to end up with mucked up permissions moving them around and never seem to remember how the permissions were set. Now let put some note as my future reference here.
$ chmod 700 ~/.ssh $ chmod 600 ~/.ssh/authorized_keys $ chmod 644 ~/.ssh/config $ chmod 600 ~/.ssh/id_dsa $ chmod 644 ~/.ssh/id_dsa.pub $ chmod 644 ~/.ssh/known_hosts
It should be okey and worked!
Source From: fedoraplanet.org.
Original article title: Robbi Nespu: How to sync *.ssh keys and set permissions.
This full article can be read at: Robbi Nespu: How to sync *.ssh keys and set permissions.