Ssh-import-id-gh
lastmod 2026-11-10created 2023-03-182 edits
ssh-import-id-gh is a command that takes a GitHub username, downloads the public SSH keys registered to that account, and adds them to the current user's ~/.ssh/authorized_keys. It is a shorthand for ssh-import-id gh:사용자명 and is included in Ubuntu's ssh-import-id package. It is convenient when registering your own keys on a new server because you do not have to copy key files manually. Since it only fetches public keys, no private keys are exposed.