edwh-sshkey-plugin
Table of Contents
Installation
To install all edwh related plugins
uvenv install edwh[plugins,omgeving]
To only install edwh sshkey plugin
uvenv install edwh[sshkey]
Guide
Generating new keys:
example for ubuntu@user.nl
edwh sshkey.generate --message={message} --owner=ubuntu --hostname=user --goal=nl
possible arguments for ew sshkey.generate:
- message: REQUIRED, message to give with the generated key
- owner: owner of the server you are generating a key for
- hostname: hostname of the server you are generating the key for
- goal: What is the goal to use this key for, for example: 'production' or 'testing'
note:
you atleast need to give this function 2-3 parameters and a message else it will not work.
Adding keys to remote
example for ubuntu@user.nl
edwh sshkey.add-to-remote -H ubuntu@user.nl --keys_to_remote=owner-hostname-goal
possible arguments for ew sshkey.add-to-remote:
- keys_to_remote: all saved keys you want to add to the remote
Removing SSH keys from a remote machine:
The delete_remote function is used to remove specified SSH keys from a remote machine. The function takes in an iterable of keys to be removed and a Connection object.
usage:
edwh sshkey.delete-remote -H ubuntu@user.nl --keys_to_remote=owner-hostname-doel
possible arguments for ew delete_remote:
- keys_to_remote: An iterable of keys to be removed from the remote machine. If a string is provided, it is converted into a list with one element.
note:
The function retrieves all key information from the keyholder and checks if the command line key is present in the key information. If it is, the function retrieves the SSH key and removes it from the authorized_keys file on the remote machine. After successfully removing the key, the function prints a success message indicating that the specified key has been removed.
List SSH keys from a remote or local machine:
edwh sshkey.list -H ubuntu@user.nl
Note:
this list all found known and unknown keys on the local or remote server.
License
edwh-sshkey-plugin is distributed under the terms of the MIT license.
Metadata
Release files for edwh-sshkey-plugin 0.1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| edwh_sshkey_plugin-0.1.8.tar.gz | 10.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| edwh_sshkey_plugin-0.1.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.3 kB
Release files / edwh_sshkey_plugin-0.1.8.tar.gz
| Download URL | edwh_sshkey_plugin-0.1.8.tar.gz |
|---|---|
| Size | 10.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ffcb0e3a96a087016dec1cc7645d07f46319cbe8297cd771d41e70521adfabf6
|
|
BLAKE2b-256 checksum How to use checksums |
9921a67389cc22b79f59b3a7e7f8a552dc6e22866fe05b9236ecc6de3c4932ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.28.1
|
Release files / edwh_sshkey_plugin-0.1.8-py3-none-any.whl
| Download URL | edwh_sshkey_plugin-0.1.8-py3-none-any.whl |
|---|---|
| Size | 8.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1141011c6d87c8a307f8a61f3a19f4314f4c3e4426128f67d5d7f0c0d63435cd
|
|
BLAKE2b-256 checksum How to use checksums |
02d21e7a916e3dd7a4582826889842e6dabc550c9ceeebdd6c8f05f4b162b094
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.28.1
|