🖥️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.
2 minute read
▁ ▂ ▃ ▄ ꧁ 🔴☠ 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
#==============================##==============================#
Cheatsheets are an excellent complement to other information sources like Linux man-pages, Linux help, or How-To’s and tutorials, as they provide compact and easily accessible information. While man-pages and detailed tutorials often contain comprehensive explanations and extensive guides, cheatsheets summarize the most important options forthe command ssh-copy-id in a clear format. This allows users to quickly access the needed information for ssh-copy-id without having to sift through lengthy texts. Especially in stressful situations or for recurring tasks, cheatsheets for ssh-copy-id are a valuable resource to work efficiently and purposefully.
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
█║▌│║█║▌★ KALI ★ PARROT ★ DEBIAN 🔴 PENTESTING ★ HACKING ★ █║▌│║█║▌
██╗ ██╗ ██████╗ ██████╗ ██╗ ██╗███████╗██████╗
████████╗██╔══██╗██╔═══██╗╚██╗██╔╝██╔════╝██╔══██╗
╚██╔═██╔╝██║ ██║██║ ██║ ╚███╔╝ █████╗ ██║ ██║
████████╗██║ ██║██║ ██║ ██╔██╗ ██╔══╝ ██║ ██║
╚██╔═██╔╝██████╔╝╚██████╔╝██╔╝ ██╗███████╗██████╔╝
╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝╚═════╝
█║▌│║█║▌ WITH COMMANDLINE-KUNGFU POWER █║▌│║█║▌
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.