Correctly set permissions for SSH related configuration files

If you import external SSH public and private keys, you may need to create a .ssh folder in your home directory and move the public and private keys to this folder. However, if the permission problem is not configured correctly, it will cause the problem that the key cannot be used.

Here is a set of commands to set the permissions of the configuration folder and public and private keys respectively:

% chmod 700 ~/.ssh % chmod 600 ~/.ssh/id_rsa % chmod 600 ~/.ssh/ % chmod 600 ~/.ssh/authroized_keys