Copy default public SSH key to remote server


Mon Jun 21 2021 10:21:52 GMT+0000 (Coordinated Universal Time)

Saved by @dphillips #ssh #server #authentification #network

# ssh-copy-id takes care of adding your key in the right place

ssh-copy-id -i " -p2222"

# If you don't use -i all of your public keys will be copied over.
# Also a alias for the host can be used if configured in your ssh config.

# You will be asked for the password and after that all should be taken care of.