pass는 GPG와 Git을 사용하여 디렉터리 트리 내에서 암호화된 파일을 관리하는 표준 Unix 철학 기반 비밀번호 관리자입니다.
초기 설정 (Initial Setup)
# GPG 키 ID로 비밀번호 저장소 초기화
pass init [email protected]
# Git 저장소 연동 초기화
pass git init
pass git remote add origin [email protected]:user/passwords.git
pass git push -u --all
자격 증명 저장 및 생성
# 수동으로 비밀번호 추가
pass insert email/[email protected]
# 여러 줄 비밀번호 항목 추가 (메타데이터, 메모)
pass insert -m server/root
# 20자 보안 비밀번호 생성 및 저장
pass generate work/aws-iam 20
# 기호 없이 비밀번호 생성
pass generate -n personal/wifi 16
비밀번호 검색 및 조회
# 디렉터리 트리의 모든 비밀번호 항목 나열
pass
# 화면에 비밀번호 표시
pass show email/[email protected]
# 클립보드에 비밀번호 복사 후 45초 뒤 자동 지우기 (-c)
pass -c email/[email protected]
# 검색어와 일치하는 항목 찾기
pass find github
항목 수정 및 이동
# 기본 $EDITOR에서 비밀번호 항목 편집
pass edit email/[email protected]
# 항목 이름 변경 또는 이동
pass mv email/[email protected] work/email
# 항목 삭제
pass rm personal/old_account
Git 동기화
# 원격 Git 서버에서 변경 사항 가져오기
pass git pull
# 로컬 커밋을 원격 Git 서버에 푸시
pass git push