[SOLVED] What are the recommended permissions of the ssh files?

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
kwyrky
Level 1
Level 1
Posts: 46
Joined: Wed Jul 10, 2019 5:10 am

[SOLVED] What are the recommended permissions of the ssh files?

Post by kwyrky » Sun Aug 18, 2019 12:25 pm

At the moment I have these permissions:

Code: Select all

kwyrky@asus:~/.ssh$ stat -c "%A %a %n" ~
drwxr-xr-x 755 /home/kwyrky
kwyrky@asus:~/.ssh$ stat -c "%A %a %n" ~/.ssh/
drwx------ 700 /home/kwyrky/.ssh/
kwyrky@asus:~/.ssh$ stat -c "%A %a %n" *
-rw-r--r-- 644 authorized_keys
-rw------- 600 id_rsa
-rw-r--r-- 644 id_rsa.pub
-rw-r--r-- 644 known_hosts
Is this secure enough?
Last edited by kwyrky on Tue Aug 20, 2019 11:24 am, edited 1 time in total.

trapperjohn
Level 5
Level 5
Posts: 840
Joined: Wed Jul 11, 2012 4:10 pm
Contact:

Re: What are the recommended permissions of the ssh files?

Post by trapperjohn » Sun Aug 18, 2019 5:18 pm

700 for the .ssh folder (drwx------)

600 for the files in it (-rw-------)

kwyrky
Level 1
Level 1
Posts: 46
Joined: Wed Jul 10, 2019 5:10 am

Re: What are the recommended permissions of the ssh files?

Post by kwyrky » Tue Aug 20, 2019 11:24 am

Ok, thank you

Post Reply

Return to “Newbie Questions”