lk/data/pass.md

43 lines
596 B
Markdown
Raw Normal View History

2022-01-16 18:20:39 +00:00
---
title: "pass"
tags: [ "Documentation", "data" ]
---
2020-02-07 23:06:49 +00:00
[Video instructions](https://www.hooktube.com/watch?v=hlRQTj1D9LA)
Setup [gpg](./gpg.md) keys.
Show your gpg secret it:
```bash
gpg --list-secret-keys
```
2020-02-07 23:06:49 +00:00
Then use the id number under `sec` to make a pass repo:
```bash
KEY="$(gpg --list-secret-keys | grep -m 1 -A1 '^sec' | tail -n 1)"
```
2020-02-07 23:06:49 +00:00
```bash
pass init $KEY
```
2020-02-07 23:06:49 +00:00
To add a basic password, e.g. for `$WEBSITE`:
```bash
pass $WEBSITE
```
2020-02-07 23:06:49 +00:00
To insert a multiline password, e.g. with a login name:
```bash
pass add -m $WEBSITE
```
2020-02-07 23:06:49 +00:00
Remove a password:
```bash
pass rm $WEBSITE
```
2020-02-07 23:06:49 +00:00