🖥️ssh-copy-id

➡️This is a command-line reference manual for commands and command combinations that you don’t use often enough to remember it. This cheatsheet explains the ssh-copy-id command with important options and switches using examples.

▁ ▂ ▃ ▄ ꧁ 🔴☠ COMMANDLINE-KUNGFU WITH CHEATSHEETS ☠🔴꧂▅ ▃ ▂ ▁

#      ███████╗███████╗██╗  ██╗       ██████╗ ██████╗ ██████╗ ██╗   ██╗     ██╗██████╗ 
#      ██╔════╝██╔════╝██║  ██║      ██╔════╝██╔═══██╗██╔══██╗╚██╗ ██╔╝     ██║██╔══██╗
#      ███████╗███████╗███████║█████╗██║     ██║   ██║██████╔╝ ╚████╔╝█████╗██║██║  ██║
#      ╚════██║╚════██║██╔══██║╚════╝██║     ██║   ██║██╔═══╝   ╚██╔╝ ╚════╝██║██║  ██║
#      ███████║███████║██║  ██║      ╚██████╗╚██████╔╝██║        ██║        ██║██████╔╝
#      ╚══════╝╚══════╝╚═╝  ╚═╝       ╚═════╝ ╚═════╝ ╚═╝        ╚═╝        ╚═╝╚═════╝ 
                

                                                                                               
# To copy a key to a remote host:
ssh-copy-id username@host

# To copy a key to a remote host on a non-standard port:
ssh-copy-id username@host -p 2222

# To copy a key to a remote host on a non-standard port with non-standard ssh key:
ssh-copy-id ~/.ssh/otherkey "username@host -p 2222"

#==============================#
# CMD SSH-COPY-ID
#==============================##==============================#
ssh-copy-id 'user@remotehost'
# Automatically installs your public key to the remote host (this is included in the openssh package)

# SSH Copy ed25519 key into your host
ssh-copy-id -i your-ed25519-key user@host

ssh-copy-id '-p 4242 user@remotehost' 
# This will install public key to remote host using ssh on non-standard port 4242.

#==============================##==============================#
# CMD SSH-COPY-ID
#==============================##==============================#
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░

  █║▌│║█║▌★ KALI ★ PARROT ★ DEBIAN 🔴 PENTESTING ★ HACKING ★ █║▌│║█║▌

              ██╗ ██╗ ██████╗  ██████╗ ██╗  ██╗███████╗██████╗
             ████████╗██╔══██╗██╔═══██╗╚██╗██╔╝██╔════╝██╔══██╗
             ╚██╔═██╔╝██║  ██║██║   ██║ ╚███╔╝ █████╗  ██║  ██║
             ████████╗██║  ██║██║   ██║ ██╔██╗ ██╔══╝  ██║  ██║
             ╚██╔═██╔╝██████╔╝╚██████╔╝██╔╝ ██╗███████╗██████╔╝
              ╚═╝ ╚═╝ ╚═════╝  ╚═════╝ ╚═╝  ╚═╝╚══════╝╚═════╝

               █║▌│║█║▌ WITH COMMANDLINE-KUNGFU POWER █║▌│║█║▌

░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░