On Thu, Mar 02, 2023 at 09:52:35AM +0800, Jeremy Ardley wrote: > On 2/3/23 05:51, Greg Wooledge wrote: > > unicorn:~$ namei -l ~/.ssh/config > > f: /home/greg/.ssh/config > > drwxr-xr-x root root / > > drwxr-xr-x root root home > > drwxr-xr-x greg greg greg > > drwxr-xr-x greg greg .ssh > > -rw-r--r-- greg greg config > > > My ~/.ssh files are for the most part even more restrictive > > -rw------- 1 jeremy jeremy 446 Mar 2 08:51 config > -rw------- 1 jeremy jeremy 2602 Dec 11 11:47 id_rsa > -rw-r--r-- 1 jeremy jeremy 567 Dec 11 11:47 id_rsa.pub
You are not providing enough information. The permissions of ALL THE DIRECTORIES IN THE PATH to the files matter too. It's an extremely common failure for someone to have, for example, the group write bit on the /home directory (or $HOME), and for this to cause ssh to refuse to read various files.