工具

auth-source

.netrc 格式

password-store

特点:

  1. 使用 gpg 加密
  2. 使用 目录 管理 host, user, port 等
  3. 支持 git 版本控制,追踪密码修改历史

教程: