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: [email protected]
          Reporter: [email protected]

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.
_______________________________________________
openssh-bugs mailing list
[email protected]
https://lists.mindrot.org/mailman/listinfo/openssh-bugs

Reply via email to