When I am connecting a Mac through ssh, I don't have any GUI.
However, for some of the commands like security find-internet-password
, there will be a GUI prompt for the admin's password. How can I have the prompt in the shell instead of GUI?
When I am connecting a Mac through ssh, I don't have any GUI.
However, for some of the commands like security find-internet-password
, there will be a GUI prompt for the admin's password. How can I have the prompt in the shell instead of GUI?
I use this in Terminal
sudo security find-internet-password -gs www.facebook.com
that asks me to confirm with my Admin Password
then it delivers.
This is by design, the security interface requires human interaction (well, GUI interaction). Normal keychain usage is done using an API which allows the user to grant the requesting application permanent access to the stored data for that request.