ssh-import-id

securely retrieve an SSH public key and install it locally

Install

All systems
curl cmd.cat/ssh-import-id.sh
Debian Debian
apt-get install ssh-import-id
Ubuntu
apt-get install ssh-import-id
image/svg+xml Kali Linux
apt-get install ssh-import-id
Windows (WSL2)
sudo apt-get update sudo apt-get install ssh-import-id
Raspbian
apt-get install ssh-import-id

ssh-import-id

securely retrieve an SSH public key and install it locally

This utility will securely contact a public keyserver (Launchpad.net by default, but Github.com is also supported), retrieve one or more user's public keys, and append these to the current user's ~/.ssh/authorized_keys file.