Fix deploy problems due to SSH key permissions and Git config.