Different keychains list when connecting through ssh

When I log in with a graphical login and run the command from a terminal:


security list-keychains


I get the following output:


    "/Users/XXXXXXX/Library/Keychains/login.keychain-db"
    "/Library/Keychains/System.keychain"


But, when I log in with ssh and run the same command I get the following output:


    "/Library/Keychains/System.keychain"
    "/Library/Keychains/System.keychain"


This is a problem because the default keychain settings cannot be changed as the current user does not have permission to change the system keychain.



Any idea?







Mac mini 2018 or later

Posted on Jul 26, 2022 7:55 AM

Reply
1 reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Different keychains list when connecting through ssh

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.