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