{"id":23003022,"url":"https://github.com/educationwarehouse/edwh-sshkey-plugin","last_synced_at":"2026-05-17T17:33:24.916Z","repository":{"id":156270087,"uuid":"632858138","full_name":"educationwarehouse/edwh-sshkey-plugin","owner":"educationwarehouse","description":"Plugin for `edwh` that generates ssh keys","archived":false,"fork":false,"pushed_at":"2025-07-04T11:25:28.000Z","size":93,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-10T16:34:27.267Z","etag":null,"topics":["edwh","fabric","invoke","python","ssh"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/edwh-sshkey-plugin","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/educationwarehouse.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-26T09:21:08.000Z","updated_at":"2025-07-04T11:25:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"7bc3a6cb-02b3-47b6-a0f8-954b7372f393","html_url":"https://github.com/educationwarehouse/edwh-sshkey-plugin","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":"educationwarehouse/edwh-demo-tasks-plugin","purl":"pkg:github/educationwarehouse/edwh-sshkey-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/educationwarehouse%2Fedwh-sshkey-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/educationwarehouse%2Fedwh-sshkey-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/educationwarehouse%2Fedwh-sshkey-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/educationwarehouse%2Fedwh-sshkey-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/educationwarehouse","download_url":"https://codeload.github.com/educationwarehouse/edwh-sshkey-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/educationwarehouse%2Fedwh-sshkey-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33147540,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T09:28:26.183Z","status":"ssl_error","status_checked_at":"2026-05-17T09:27:52.702Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["edwh","fabric","invoke","python","ssh"],"created_at":"2024-12-15T07:13:14.160Z","updated_at":"2026-05-17T17:33:24.886Z","avatar_url":"https://github.com/educationwarehouse.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# edwh-sshkey-plugin\n\n[![PyPI - Version](https://img.shields.io/pypi/v/edwh-sshkey-plugin.svg)](https://pypi.org/project/edwh-sshkey-plugin)\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/edwh-sshkey-plugin.svg)](https://pypi.org/project/edwh-sshkey-plugin)\n\n-----\n\n**Table of Contents**\n\n- [Installation](#installation)\n- [Guide](#guide)\n- [Generating new keys](#generating-new-keys)\n- [Adding keys](#adding-keys-to-remote)\n- [Removing keys](#removing-ssh-keys-from-a-remote-machine)\n- [Listing Local/Remote Keys](#list-ssh-keys-from-a-remote-or-local-machine)\n- [License](#license)\n\n## Installation\n\nTo install all edwh related plugins\n```console\nuvenv install edwh[plugins,omgeving]\n```\n\nTo only install edwh sshkey plugin\n```console\nuvenv install edwh[sshkey]\n```\n\n## Guide\n### Generating new keys:\nexample for ubuntu@user.nl\n```console\nedwh sshkey.generate --message={message} --owner=ubuntu --hostname=user --goal=nl\n```\n\npossible arguments for `ew sshkey.generate`:\n- **message**: REQUIRED, message to give with the generated key\n- **owner**: owner of the server you are generating a key for\n- **hostname**: hostname of the server you are generating the key for\n- **goal**: What is the goal to use this key for, for example: 'production' or 'testing'\n\n#### note:\nyou atleast need to give this function 2-3 parameters and a message else it will not work.\n\n### Adding keys to remote\nexample for ubuntu@user.nl\n```console\nedwh sshkey.add-to-remote -H ubuntu@user.nl --keys_to_remote=owner-hostname-goal\n```\n\npossible arguments for `ew sshkey.add-to-remote`:\n- **keys_to_remote**: all saved keys you want to add to the remote\n\n### Removing SSH keys from a remote machine:\nThe delete_remote function is used to remove specified SSH keys from a remote machine. \nThe function takes in an iterable of keys to be removed and a Connection object.\n\n#### usage:\n```console\nedwh sshkey.delete-remote -H ubuntu@user.nl --keys_to_remote=owner-hostname-doel\n```\n\npossible arguments for `ew delete_remote`:\n- **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.\n\n#### note:\nThe function retrieves all key information from the keyholder and checks if the command line key is present in the key information. \nIf it is, the function retrieves the SSH key and removes it from the authorized_keys file on the remote machine.\nAfter successfully removing the key, the function prints a success message indicating that the specified key has been removed.\n\n### List SSH keys from a remote or local machine:\n```console\nedwh sshkey.list -H ubuntu@user.nl\n```\n\n#### Note:\nthis list all found known and unknown keys on the local or remote server.\n\n## License\n`edwh-sshkey-plugin` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feducationwarehouse%2Fedwh-sshkey-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feducationwarehouse%2Fedwh-sshkey-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feducationwarehouse%2Fedwh-sshkey-plugin/lists"}