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.
pip install ssh-import-idVerified import paths — ran on the pinned version, not inferred.
Quickstart: authorize keys from GitHub user 'cmars' using subprocess or the Python module. The CLI is the primary interface.
Use subprocess.run(['ssh-import-id', ...]) for production scripts; wrap main() call in try/except SystemExit if using the library.
Ensure the user exists and has proper directory permissions. Run as the target user or use sudo -u.
Use --retry N for retries; use --remove to delete keys from specific sources.
Install: pip install ssh-import-id. Import: from ssh_import_id import main.
Use --retry N instead, e.g., ssh-import-id --retry 3 gh:user.
No dependency data recorded yet.