SSH and its configuration files permissions

Every user has .ssh  folder under the user home directory to manage the ssh connections and store keys that are used to connect.  

.SSH folder permission plays an important role in setting up connections so please make sure the permissions and intact.

  • chmod 700 ~/.ssh (Folder to store ssh config and ssh keys)
  • chmod 644 ~/.ssh/authorized_keys (store public keys to establish passwordless ssh connection)
  • chmod 644 ~/.ssh/known_hosts (stores key information which connected to the node)
  • chmod 644 ~/.ssh/config (customize and manage ssh connections)
  • chmod 600 ~/.ssh/id_rsa (RSA private key)
  • chmod 644 ~/.ssh/id_rsa.pub (RSA public key)
For more information use the below command
$man ssh_config

Comments

Popular posts from this blog

AWS: Auto Scaling

Jenkins Pipeline

EC2-Instances-awscli