" /> ssh "permissions sont trop ouvertes" erreur | 2022 codeprofesseur

ssh "permissions sont trop ouvertes" erreur

Mots clés : permissionssshpermissions

meilleur 3 Réponses ssh "permissions sont trop ouvertes" erreur

vote vote

99

chmod 400 ~/.ssh/id_rsa 
chmod 600 ~/.ssh/id_rsa 
 ~/.ssh/id_rsa          Contains the private key for authentication.  These files contain sensitive           data and should be readable by the user but not          accessible by others (read/write/execute).  ssh will simply ignore a private           key file if it is                        accessible by others.  It is possible to specify a          passphrase when generating the key which will be used to encrypt the sensitive           part of this file using 3DES.   ~/.ssh/identity.pub  ~/.ssh/id_dsa.pub  ~/.ssh/id_ecdsa.pub  ~/.ssh/id_rsa.pub          Contains the public key for authentication.  These files are not sensitive and           can (but need not) be readable by anyone. 
vote vote

89

chgrp Users ~/.ssh/id_rsa 
chmod 600 ~/.ssh/id_rsa 
vote vote

79

chgrp 545 ~/.ssh/id_rsa chmod 600 ~/.ssh/id_rsa 

Questions similaires