ssh-copy-id

Install your public key in a remote machine's authorized_keys. More information: <https://manned.org/ssh-copy-id>.

Install

All systems
curl cmd.cat/ssh-copy-id.sh
Debian Debian
apt-get install openssh-client
Ubuntu
apt-get install openssh-client
Alpine
apk add openssh-client
Arch Arch Linux
pacman -S ssh-copy-id
image/svg+xml Kali Linux
apt-get install openssh-client
CentOS
yum install openssh-clients
Fedora
dnf install openssh-clients
Windows (WSL2)
sudo apt-get update sudo apt-get install openssh-client
OS X
brew install ssh-copy-id
Raspbian
apt-get install openssh-client
Docker
docker run cmd.cat/ssh-copy-id ssh-copy-id powered by Commando

Install your public key in a remote machine's authorized_keys. More information: <https://manned.org/ssh-copy-id>.

  • Copy your keys to the remote machine:
    ssh-copy-id username@remote_host
  • Copy the given public key to the remote:
    ssh-copy-id -i path/to/certificate username@remote_host
  • Copy the given public key to the remote with specific port:
    ssh-copy-id -i path/to/certificate -p port username@remote_host

© tl;dr; authors and contributors