SSH-COPY-ID Commands Cheat Sheet

Here is a cli commands cheat sheet for SSH-COPY-ID command, you can use this as a quick reminder for basic commands with a brief description for each of the commands.

What is SSH-COPY-ID command?

Add some data here

        ---
tags: [ ssh ]
---
# To copy your keys listed in `ssh-add -L` to a remote host:
ssh-copy-id @

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

# To copy one single public key to a remote host on a non-standard port:
ssh-copy-id -i ~/.ssh/a_public_key.pub "username@host -p 2222"
    

Check out the SSH-COPY-ID command documentation .


You can also check our MegaSh cheatsheet tool, that has 150+ searchable linux cheat sheets in one page, so you never forget a command as you work again

Check Also

Best AI tools list