To set mode 0400 to all your ssh keys:

$ find ~/.ssh/* -type f -name "id*" -not -iname "*.pub" -exec chmod 0400 {} \+