Network
The ssh-copy-id command
Copies your public key to the remote server so you can log in over SSH without a password.
Syntax
ssh-copy-id usuario@hostMost useful options
-i ARCHIVOUses a specific public keyCopy-ready examples
$ ssh-keygen -t ed25519 && ssh-copy-id invitado@servidor-aulaCreate a key and copy itYou can try them in the browser terminal: it does not touch your computer.
Typical mistakes
- It only works if you already have password access to the server the first time.
Related commands
FAQ
What happens on the server?
Your public key is added to that user's ~/.ssh/authorized_keys.
Learn to actually use it
The basic Linux course takes you from zero to console fluency with 24 self-grading lessons.
Start the free course