[Bug 3654] New: "ssh-add ~/.ssh/id_rsa.pub" raises misleading permission error
    bugzilla-daemon at mindrot.org 
    bugzilla-daemon at mindrot.org
       
    Thu Jan 11 03:49:12 AEDT 2024
    
    
  
https://bugzilla.mindrot.org/show_bug.cgi?id=3654
            Bug ID: 3654
           Summary: "ssh-add ~/.ssh/id_rsa.pub" raises misleading
                    permission error
           Product: Portable OpenSSH
           Version: 9.4p1
          Hardware: 68k
                OS: Mac OS X
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: ssh-add
          Assignee: unassigned-bugs at mindrot.org
          Reporter: docwhat at gerf.org
ssh-add ~/.ssh/id_rsa.pub reports:
----------->8----- cut here ------8<----------
❯ ssh-add ~/.ssh/id_rsa.pub
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0644 for '/Users/clintonpowell/.ssh/id_rsa.pub' are too
open.
It is required that your private key files are NOT accessible by
others.
This private key will be ignored.
----------->8----- cut here ------8<----------
I expected it to say the file is invalid format or better yet, a
message about it needing a private key.
----------->8----- cut here ------8<----------
❯ ssh-add ~/.ssh/id_rsa.pub
Error loading key "/Users/christianholtje/.ssh/id_rsa.pub": invalid
format
----------->8----- cut here ------8<----------
-- 
You are receiving this mail because:
You are watching the assignee of the bug.
    
    
More information about the openssh-bugs
mailing list