Terminal alternative to gnome-keyring
Technically, gnome-keyring
is not a GUI tool. Seahorse is. And gnome-keyring
infrastructure can be accessed via command line, using this project.
This is using the Python bindings that Rinzwind mentions in his comment, and using this tool, you can simply do this:
./gkeyring.py get -s myserver.com -p ftp -u user
This will look for all keyring items concerning server myserver.com with protocol ftp and username user.
as mentioned in this blog.
I've solved this problem with gnome-keyring-cli.
To install it:
- clone repo
- be sure glib-devel and libgnome-keyring-devel (or your system equivalent) are available
- compile just invoking make
- by hand copy the gnome-keyring-cli binary at the destination of your choice (my is ~/bin/)
With gnome-keyring-cli you can lookup, add, remove, etc. It's not very user friendly but it's doing the job.
If you don't want to use gnome key ring you can always use the kernal keyring...
See my notes... https://antofthy.gitlab.io/info/crypto/passwd_caching.txt
And more specifically https://antofthy.gitlab.io/info/crypto/keyring_linux_kernal.txt