lk/data/pass.md

43 lines
523 B
Markdown
Raw Normal View History

2022-01-16 18:20:39 +00:00
---
title: "pass"
2025-02-11 19:47:50 +00:00
tags: [ "data" ]
2025-02-12 21:50:27 +00:00
requires: "GPG Basics"
2022-01-16 18:20:39 +00:00
---
2020-02-07 23:06:49 +00:00
Setup [gpg](./gpg.md) keys.
Show your gpg secret it:
2025-02-12 21:50:27 +00:00
```sh
gpg --list-secret-keys
```
2020-02-07 23:06:49 +00:00
Then use the id number under `sec` to make a pass repo:
2025-02-12 21:50:27 +00:00
```sh
KEY="$(gpg --list-secret-keys | grep -m 1 -A1 '^sec' | tail -n 1)"
```
2020-02-07 23:06:49 +00:00
2025-02-12 21:50:27 +00:00
```sh
pass init $KEY
```
2020-02-07 23:06:49 +00:00
To add a basic password, e.g. for `$WEBSITE`:
2025-02-12 21:50:27 +00:00
```sh
pass $WEBSITE
```
2020-02-07 23:06:49 +00:00
To insert a multiline password, e.g. with a login name:
2025-02-12 21:50:27 +00:00
```sh
pass add -m $WEBSITE
```
2020-02-07 23:06:49 +00:00
Remove a password:
2025-02-12 21:50:27 +00:00
```sh
pass rm $WEBSITE
```
2020-02-07 23:06:49 +00:00