------------------------------------------------------------------------------------- / _ \ \_\(_)/_/ _//"\\_ JOHLEM.net / \ https://johlem.net/V1/topics/cheatsheet.php ------------------------------------------------------------------------------------- --- Pass: the simple CLI password manager (src: https://www.passwordstore.org) (https://www.redhat.com/sysadmin/management-password-store) (https://blog.christophersmart.com/2016/08/10/command-line-password-management-with-pass/) #installation sudo apt-get install pass #LISTING PASSWORD: We can list all the existing passwords in the store: joh@laptop ~ $ pass Password Store ├── Business │ ├── proton.com │ └── johlem.net ├── Email │ ├── outlook.com │ └── gmail.com └── France ├── bank ├── freebox └── phone #SHOW PASSWORD: joh@laptop ~ $ pass Email/johlem.net s+sd44sizmynam3 #COPY PASSWORD TO CLIPBOARD: joh@laptop ~ $ pass -c Email/johlem.net Copied Email/xz1@johlem.net to clipboard. Will clear in 45 seconds #GENERATE NEW PASSWORD: joh@laptop ~ $ pass generate Email/bob 15 The generated password to Email/johlem.net is: $(-QF&Q=IN2nFBx #REMOVE PASSWORD: joh@laptop ~ $ pass rm Business/cheese-whiz-factory rm: remove regular file ‘/home/joh/.password-store/Business/cheese-whiz-factory.gpg’? y removed ‘/home/joh/.password-store/Business/cheese-whiz-factory.gpg’ #SETTING UP: joh@laptop ~ $ pass init "joh Password Storage Key" mkdir: created directory ‘/home/joh/.password-store’ Password store initialized for joh Password Storage Key. Here, joh Password Storage Key is the ID of my GPG key. You can use your standard GPG key or use an alternative one especially for the password store as shown above.