HOME | LAB PROGRAMMING | RATIONAL ROSE DIAGRAM | COMPUTE GRAPHICS | CLASS DIAGRAM | NETWORK PROGRAMING | BEST OF THE SITE

SSH Passworless Access Maintain Correct Permission For Home Folder

While doing ssh passworless access. Home directory .ssh should containt
700 permission it should not open for others like with permission (744).if it is open then we will get
error message
Permissions 0740 for '/home/username/.ssh/id_dsa' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
bad permissions: ignore key: /home/username/.ssh/id_dsa

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
[kamalr@admin ~]$ ls -l /home | grep jais
drwx------  84 jais         systems      6260 May 25 14:56 jais
[kamalr@admin ~]$ ls -l /home | grep kamalr
drwxrwx---  39 kamalr       salsup       1575 Mar  3 10:22 kamalr

jais user ssh pass-wordless will work.
But for kamalr pass-wordless won't work because home directory it self don't have correct permission.

0 comments: