{"library":"ssh-import-id","title":"ssh-import-id","type":"library","description":"Authorize SSH public keys from trusted online identities (GitHub, GitLab, Launchpad, etc.). Current version 5.13, with stable release cadence since 2019. Integrated into Ubuntu/Canonical Cloud images for key management.","language":"python","status":"active","last_verified":"Mon Apr 27","install":{"commands":["pip install ssh-import-id"],"cli":{"name":"ssh-import-id","version":"usage: ssh-import-id [-h] [-o FILE] [-r] [-u USERAGENT] USERID [USERID ...]"}},"imports":["from ssh_import_id import main","from ssh_import_id.gh import main"],"auth":{"required":false,"env_vars":[]},"links":{"homepage":"https://launchpad.net/ssh-import-id","github":null,"docs":null,"changelog":null,"pypi":"https://pypi.org/project/ssh-import-id/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null},"quickstart":{"code":"import subprocess\nimport os\n# Fetch and add keys from GitHub user 'cmars'\nsubprocess.run(['ssh-import-id', 'gh:cmars'], check=True)\n# Or run from Python with module\nfrom ssh_import_id import main\ntry:\n    main(['gh:cmars'])\nexcept SystemExit as e:\n    print(f'Exited with code {e.code}')","lang":"python","description":"Quickstart: authorize keys from GitHub user 'cmars' using subprocess or the Python module. The CLI is the primary interface.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}