Get password prompt in the terminal/shell 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.