Linux command
gnome-keyring 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Start keyring daemon
gnome-keyring-daemon --start
Start with specific components
gnome-keyring-daemon --start --components=secrets,ssh
Replace running daemon
gnome-keyring-daemon --replace
Store a secret via CLI
secret-tool store --label="My Secret" service myapp
Lookup secret
secret-tool lookup service myapp
说明
GNOME Keyring is a daemon that stores secrets, passwords, and keys. It provides secure storage for applications and handles SSH key management. The keyring is typically started at login and unlocked with the user's password. Applications access it through libsecret or the Secret Service D-Bus API.
参数
- --start
- Start daemon if not running.
- --replace
- Replace running daemon.
- --components _list_
- Components: secrets, pkcs11, ssh.
- --daemonize
- Run as daemon.
- -f, --foreground
- Run in foreground.
- --unlock
- Read a password from stdin and unlock the login keyring, or create it if it does not exist.
- -l, --login
- Read login password from stdin (used by PAM).
- -C, --control-directory _directory_
- Directory for creating communication sockets.
- -V, --version
- Print version and exit.
FAQ
What is the gnome-keyring command used for?
GNOME Keyring is a daemon that stores secrets, passwords, and keys. It provides secure storage for applications and handles SSH key management. The keyring is typically started at login and unlocked with the user's password. Applications access it through libsecret or the Secret Service D-Bus API.
How do I run a basic gnome-keyring example?
Run `gnome-keyring-daemon --start` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --start do in gnome-keyring?
Start daemon if not running.