-
Notifications
You must be signed in to change notification settings - Fork 5
/
gopass-cheat-sheet.html
228 lines (217 loc) · 11.9 KB
/
gopass-cheat-sheet.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8" />
<meta name="generator" content="pandoc" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<!-- Bootstrap CSS -->
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css"
integrity="sha256-l85OmPOjvil/SOvVt3HnSSjzF1TUMyT9eV0c2BzEGzU="
crossorigin="anonymous"
/>
<meta name="author" content="Santiago Fraire Willemoes" />
<meta name="keywords" content="gpg, crypto, password, secrets" />
<style type="text/css">
.cheat-sheet {
box-sizing: border-box;
-webkit-column-width: 36em;
-moz-column-width: 36em;
column-width: 36em;
-webkit-column-gap: 2em;
-moz-column-gap: 2em;
column-gap: 2em;
margin: 15px;
font-family: roboto, oxygen, ubuntu, cantarell, fira sans, droid sans, helvetica neue, sans-serif;
}
p {
font-size: 0.9rem;
}
h1 {
padding-left: 20px;
background: #222222;
padding-top: 10px;
padding-bottom: 10px;
color: white;
margin-top: 0px;
}
h2 {
background-color: #222222;
color: white;
padding-top: 5px;
padding-bottom: 5px;
padding-left: 5px;
}
.source p {
margin: 0px;
padding: 0px;
position:fixed;
}
h3 {
/* text-decoration: underline; */
font-size: 1.3rem;
}
img {
display: block;
margin-left: auto;
margin-right: auto;
}
/* .highlight pre, pre {
padding: 16px;
overflow: auto;
font-size: 85%;
line-height: 1.45;
background-color: #f6f8fa;
border-radius: 3px;
} */
code,
pre {
padding: 0 3px 2px;
font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
font-size: 12px;
color: #333333;
}
code {
padding: 2px 4px;
color: #d14;
background-color: #f7f7f9;
border: 1px solid #e1e1e8;
white-space: nowrap;
}
pre {
display: block;
padding: 9.5px;
margin: 0 0 10px;
font-size: 13px;
line-height: 20px;
word-break: break-all;
word-wrap: break-word;
white-space: pre;
white-space: pre-wrap;
background-color: #f5f5f5;
border: 1px solid #ccc;
border: 1px solid rgba(0, 0, 0, 0.15);
}
pre.prettyprint {
margin-bottom: 20px;
}
pre code {
padding: 0;
color: inherit;
white-space: pre;
white-space: pre-wrap;
background-color: transparent;
border: 0;
}
.pre-scrollable {
max-height: 340px;
overflow-y: scroll;
}
</style>
<title>Gopass Cheat Sheet</title>
</head>
<body>
<div class="container-fluid">
<div class="cheat-sheet">
<h1 id="gopass-cheat-sheet">GOPASS CHEAT SHEET</h1>
<p>Secure passwords with <a href="https://gopass.pw">gopass</a>.
It creates a folder tree, where encrypted files are the
leaves.</p>
<div class="sourceCode" id="cb1"><pre
class="sourceCode bash"><code class="sourceCode bash"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="ex">gopass</span></span>
<span id="cb1-2"><a href="#cb1-2" aria-hidden="true" tabindex="-1"></a><span class="ex">├──</span> my-company</span>
<span id="cb1-3"><a href="#cb1-3" aria-hidden="true" tabindex="-1"></a><span class="ex">│</span> └── pepe@my-company.com</span>
<span id="cb1-4"><a href="#cb1-4" aria-hidden="true" tabindex="-1"></a><span class="ex">└──</span> personal</span>
<span id="cb1-5"><a href="#cb1-5" aria-hidden="true" tabindex="-1"></a> <span class="ex">└──</span> pepe@personal.com</span></code></pre></div>
<h2 id="gpg-keys">GPG Keys</h2>
<h3 id="list-secret-keys">List secret keys</h3>
<div class="sourceCode" id="cb2"><pre
class="sourceCode bash"><code class="sourceCode bash"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a><span class="ex">gpg</span> <span class="at">-K</span></span></code></pre></div>
<h3 id="create-new-key-required">Create new key (required)</h3>
<div class="sourceCode" id="cb3"><pre
class="sourceCode bash"><code class="sourceCode bash"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a><span class="ex">gpg</span> <span class="at">--full-generate-key</span></span></code></pre></div>
<h2 id="initialize-gopass">Initialize gopass</h2>
<h3 id="autocomplete">Autocomplete</h3>
<div class="sourceCode" id="cb4"><pre
class="sourceCode bash"><code class="sourceCode bash"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a><span class="bu">echo</span> <span class="st">"source <(gopass completion bash)"</span> <span class="op">>></span> ~/.bashrc</span></code></pre></div>
<h3 id="initialize-new-password-store-required">Initialize new
password store (required)</h3>
<div class="sourceCode" id="cb5"><pre
class="sourceCode bash"><code class="sourceCode bash"><span id="cb5-1"><a href="#cb5-1" aria-hidden="true" tabindex="-1"></a><span class="ex">gopass</span> init</span></code></pre></div>
<p>Note: backup your private key in an encrypted disk.</p>
<h2 id="using-gopass">Using gopass</h2>
<h3 id="list-passwords">List passwords</h3>
<div class="sourceCode" id="cb6"><pre
class="sourceCode bash"><code class="sourceCode bash"><span id="cb6-1"><a href="#cb6-1" aria-hidden="true" tabindex="-1"></a><span class="ex">gopass</span> ls</span></code></pre></div>
<h3 id="creating-passwords">Creating passwords</h3>
<p>Default store location <code>~/.password-store/</code></p>
<div class="sourceCode" id="cb7"><pre
class="sourceCode bash"><code class="sourceCode bash"><span id="cb7-1"><a href="#cb7-1" aria-hidden="true" tabindex="-1"></a><span class="ex">gopass</span> insert my-company/willy@email.com</span></code></pre></div>
<h3 id="generate-random-pass">Generate random pass</h3>
<div class="sourceCode" id="cb8"><pre
class="sourceCode bash"><code class="sourceCode bash"><span id="cb8-1"><a href="#cb8-1" aria-hidden="true" tabindex="-1"></a><span class="ex">gopass</span> generate my-company/anothername@rmail.com</span></code></pre></div>
<h3 id="search-secrets">Search secrets</h3>
<div class="sourceCode" id="cb9"><pre
class="sourceCode bash"><code class="sourceCode bash"><span id="cb9-1"><a href="#cb9-1" aria-hidden="true" tabindex="-1"></a><span class="ex">gopass</span> search @email.com</span></code></pre></div>
<h3 id="show-password-in-console">Show password in console</h3>
<div class="sourceCode" id="cb10"><pre
class="sourceCode bash"><code class="sourceCode bash"><span id="cb10-1"><a href="#cb10-1" aria-hidden="true" tabindex="-1"></a><span class="ex">gopass</span> show my-company/willy@email.com</span></code></pre></div>
<h3 id="copy-password-to-clipboard">Copy password to
clipboard</h3>
<div class="sourceCode" id="cb11"><pre
class="sourceCode bash"><code class="sourceCode bash"><span id="cb11-1"><a href="#cb11-1" aria-hidden="true" tabindex="-1"></a><span class="ex">gopass</span> show <span class="at">-c</span> my-company/willy@email.com</span></code></pre></div>
<h2 id="using-stores">Using stores</h2>
<p>Stores (AKA mounts) let you group your passwords. Example:
<code>personal</code>, <code>company</code>. Each one can live
in a different repository, and you could share
<code>company</code> with your peers.</p>
<h3 id="initialize-new-store">Initialize new store</h3>
<p>Creates a new store located at
<code>~/.password-store-my-company</code>.</p>
<div class="sourceCode" id="cb12"><pre
class="sourceCode bash"><code class="sourceCode bash"><span id="cb12-1"><a href="#cb12-1" aria-hidden="true" tabindex="-1"></a><span class="ex">gopass</span> init <span class="at">--store</span> my-company</span></code></pre></div>
<h3 id="add-git-remote-to-store">Add git remote to store</h3>
<div class="sourceCode" id="cb13"><pre
class="sourceCode bash"><code class="sourceCode bash"><span id="cb13-1"><a href="#cb13-1" aria-hidden="true" tabindex="-1"></a><span class="ex">gopass</span> git remote add <span class="at">--store</span> my-company origin git@gh.com/Woile/keys.git</span></code></pre></div>
<h3 id="clone-existing-store">Clone existing store</h3>
<div class="sourceCode" id="cb14"><pre
class="sourceCode bash"><code class="sourceCode bash"><span id="cb14-1"><a href="#cb14-1" aria-hidden="true" tabindex="-1"></a><span class="ex">gopass</span> clone git@gh.com/Woile/keys.git my-company <span class="at">--sync</span> gitcli</span></code></pre></div>
<h2 id="synchronization">Synchronization</h2>
<h3 id="synchronize-with-remotes">Synchronize with remotes</h3>
<div class="sourceCode" id="cb15"><pre
class="sourceCode bash"><code class="sourceCode bash"><span id="cb15-1"><a href="#cb15-1" aria-hidden="true" tabindex="-1"></a><span class="ex">gopass</span> sync</span></code></pre></div>
<h3 id="synchronzing-a-single-store">Synchronzing a single
store</h3>
<div class="sourceCode" id="cb16"><pre
class="sourceCode bash"><code class="sourceCode bash"><span id="cb16-1"><a href="#cb16-1" aria-hidden="true" tabindex="-1"></a><span class="ex">gopass</span> sync <span class="at">--store</span> my-company</span></code></pre></div>
<h2 id="team-sharing">Team sharing</h2>
<h3 id="export-public-key">Export public key</h3>
<div class="sourceCode" id="cb17"><pre
class="sourceCode bash"><code class="sourceCode bash"><span id="cb17-1"><a href="#cb17-1" aria-hidden="true" tabindex="-1"></a><span class="ex">gpg</span> <span class="at">-a</span> <span class="at">--export</span> willy@email.com <span class="op">></span> willy.pub.asc</span></code></pre></div>
<h3 id="check-current-recipients">Check current recipients</h3>
<div class="sourceCode" id="cb18"><pre
class="sourceCode bash"><code class="sourceCode bash"><span id="cb18-1"><a href="#cb18-1" aria-hidden="true" tabindex="-1"></a><span class="ex">gopass</span> recipients</span></code></pre></div>
<h3 id="add-public-key-into-gopass">Add public key into
gopass</h3>
<div class="sourceCode" id="cb19"><pre
class="sourceCode bash"><code class="sourceCode bash"><span id="cb19-1"><a href="#cb19-1" aria-hidden="true" tabindex="-1"></a><span class="ex">gpg</span> <span class="at">--import</span> <span class="op"><</span> willy.pub.asc</span></code></pre></div>
<div class="sourceCode" id="cb20"><pre
class="sourceCode bash"><code class="sourceCode bash"><span id="cb20-1"><a href="#cb20-1" aria-hidden="true" tabindex="-1"></a><span class="ex">gpg</span> <span class="at">--list-keys</span></span></code></pre></div>
<div class="sourceCode" id="cb21"><pre
class="sourceCode bash"><code class="sourceCode bash"><span id="cb21-1"><a href="#cb21-1" aria-hidden="true" tabindex="-1"></a><span class="ex">gopass</span> recipients add willy@email.com</span></code></pre></div>
<div class="source">
<p><a
href="https://github.com/Woile/gopass-cheat-sheet">source</a> |
<a
href="https://woile.github.io/gopass-presentation/">presentation</a>
| <a href="https://twitter.com/santiwilly">santiwilly</a></p>
</div>
</div>
</div>
</body>
</html>