update doc
This commit is contained in:
parent
06a994ba4b
commit
de97427032
1 changed files with 43 additions and 7 deletions
50
README.md
50
README.md
|
|
@ -15,7 +15,8 @@ Requires:
|
||||||
|
|
||||||
Optional:
|
Optional:
|
||||||
- screen (key caching and clipboard time)
|
- screen (key caching and clipboard time)
|
||||||
- openssh (for remote files)
|
- lftp (for ftps remote files)
|
||||||
|
- curl (for WebDAV remote files)
|
||||||
- zenity (GUI prompt)
|
- zenity (GUI prompt)
|
||||||
- kdialog (better GUI prompt in KDE)
|
- kdialog (better GUI prompt in KDE)
|
||||||
- xclip (copy on X)
|
- xclip (copy on X)
|
||||||
|
|
@ -29,7 +30,7 @@ From [zpkg](https://github.com/zawwz/zpkg) package repository
|
||||||
|
|
||||||
Requires [lxsh](https://github.com/zawwz/lxsh)
|
Requires [lxsh](https://github.com/zawwz/lxsh)
|
||||||
|
|
||||||
Clone this repository then run `make install`
|
Clone this repository then run `sudo make install`
|
||||||
|
|
||||||
# Use
|
# Use
|
||||||
|
|
||||||
|
|
@ -57,14 +58,36 @@ zpass will load by default the file `.config/zpass/default.conf` in your home di
|
||||||
|
|
||||||
### Configuring remote file
|
### Configuring remote file
|
||||||
|
|
||||||
You can configure zpass to use a file on a remote server.
|
You can configure zpass to use a file on a remote server. <br>
|
||||||
You need SSH access to the target machine.<br>
|
Multiple methods of remote access can be used:
|
||||||
Here is an example configuration:
|
- SSH+SCP (requires SSH key configured)
|
||||||
|
- SFTP (requires SSH key configured)
|
||||||
|
- FTPS
|
||||||
|
- WebDAV (note: only HTTPS, not HTTP)
|
||||||
|
|
||||||
|
SFTP and WebDAV are the recommended options, as they are the easiest, most secure and most stable options. <br>
|
||||||
|
SFTP is the easiest to use as you only need a configured SSH access to a machine,
|
||||||
|
however if you want as little delay as possible, you should use WebDAV.
|
||||||
|
|
||||||
|
### SFTP example
|
||||||
|
|
||||||
```
|
```
|
||||||
ZPASS_REMOTE_ADDR=user@example.com
|
ZPASS_REMOTE_METHOD=sftp
|
||||||
|
ZPASS_REMOTE_ADDR=example.com
|
||||||
|
ZPASS_REMOTE_USER=user
|
||||||
ZPASS_SSH_ID=~/.ssh/id_rsa
|
ZPASS_SSH_ID=~/.ssh/id_rsa
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### WebDAV example
|
||||||
|
|
||||||
|
```
|
||||||
|
ZPASS_REMOTE_METHOD=webdav
|
||||||
|
ZPASS_REMOTE_ADDR=example.com
|
||||||
|
ZPASS_PATH=zpass
|
||||||
|
ZPASS_REMOTE_USER=user
|
||||||
|
ZPASS_REMOTE_PASSWORD=supersecretpassword
|
||||||
|
```
|
||||||
|
|
||||||
### Making the cache volatile
|
### Making the cache volatile
|
||||||
|
|
||||||
If you are caching keys, by default zpass uses `~/.cache` as a caching path.
|
If you are caching keys, by default zpass uses `~/.cache` as a caching path.
|
||||||
|
|
@ -73,7 +96,7 @@ leaving a file containing the key in plaintext. <br>
|
||||||
This can be fixed by pointing the cache path to a volatile filesystem. <br>
|
This can be fixed by pointing the cache path to a volatile filesystem. <br>
|
||||||
For example:
|
For example:
|
||||||
```
|
```
|
||||||
ZPASS_CACHE_PATH=/tmp/zpasscache
|
ZPASS_CACHE_PATH=$XDG_RUNTIME_DIR/zpasscache
|
||||||
```
|
```
|
||||||
|
|
||||||
# Troubleshooting
|
# Troubleshooting
|
||||||
|
|
@ -81,3 +104,16 @@ ZPASS_CACHE_PATH=/tmp/zpasscache
|
||||||
### Prompt keeps appearing even with correct password
|
### Prompt keeps appearing even with correct password
|
||||||
|
|
||||||
Make sure your gpg configuration is correct, you can run `gpg -c < /dev/null` to check
|
Make sure your gpg configuration is correct, you can run `gpg -c < /dev/null` to check
|
||||||
|
|
||||||
|
### I can't get a remote file to work
|
||||||
|
|
||||||
|
First verify that you can connect to the remote server with the appropriate protocol by using a client.
|
||||||
|
Then check that you have the correct rights to the target file (`$ZPASS_PATH/$ZPASS_FILE.tar.gpg`).
|
||||||
|
|
||||||
|
If you're attempting the create the file and the folder `$ZPASS_PATH` doesn't exist,
|
||||||
|
make sure you have correct rights to create said folder.
|
||||||
|
|
||||||
|
### I'm encountering another bug
|
||||||
|
|
||||||
|
Generate a debug build (`make debug`) and run with environment `DEBUG=true` set,
|
||||||
|
then send the full output as an issue.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue