-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
47 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,17 +61,17 @@ Options: | |
-h, --help Show this message and exit. | ||
|
||
Commands: | ||
delete Delete a key from the stash | ||
delete Delete a key | ||
export Export all keys to a file | ||
get Retrieve a key from the stash | ||
init Init a stash | ||
list List all keys in the stash If `KEY_NAME` is... | ||
load Load all keys from an exported key file to... | ||
lock Lock a key | ||
migrate Migrate all keys from a source stash to a... | ||
purge Purge the stash from all of its keys | ||
put Insert a key to the stash | ||
ssh Use an ssh type key to connect to a machine... | ||
get Retrieve a key | ||
init Initialize a stash | ||
list List keys | ||
load Load keys from backup | ||
lock Lock a key to protect it | ||
migrate Migrate keys from source to destination stash | ||
purge Purge all keys | ||
put Insert a new key | ||
ssh Use a key to SSH-connect to a machine | ||
unlock Unlock a key | ||
|
||
|
||
|
@@ -303,6 +303,21 @@ An added nicety is that you don't actually have to have key files stored on your | |
|
||
Note that ghost will force you to provide the `conn` and one of `ssh_key` or `ssh_key_path` values when using the `--type=ssh` key type. | ||
|
||
You can also use a ProxyCommand based `ssh` method to connect to a machine through a proxy: | ||
|
||
```bash | ||
$ ghost put machine-through-proxy --type ssh [email protected] key_file_path=~/.ssh/key.pem [email protected] proxy_key_path=~/.ssh/my_proxy_key | ||
|
||
$ ghost ssh my-machine | ||
... | ||
|
||
``` | ||
|
||
You can also use `proxy_key` to provide the string of the key instead of `ssh_key_path`. | ||
|
||
Additionally, any string put under the `extend` value in the key will be concatenated to the resulting ssh command. | ||
|
||
|
||
## Purging a stash | ||
|
||
To allow for extreme measures when necessary, ghost provides the `purge` API (and command). If you quickly need to delete all keys from a stash, you can use it. To purge a stash you'll have to provide a mandatory `force` flag as precautionary measure. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ def read(*parts): | |
|
||
setup( | ||
name='ghost', | ||
version="0.6.0", | ||
version="0.6.1", | ||
url='https://github.com/nir0s/ghost', | ||
author='nir0s', | ||
author_email='[email protected]', | ||
|