How to avoid having to retype a password repeatedly using ssh-keygen and ssh-copy-id

You are tired of using SSH and having to repeatedly type passwords. This slowing down your workflow, especially as you are working on multiple servers.

The solution is to use ssh-copy-id to copy your private key to the remote server for easy access next time.

The format is incredibly simple, just type ssh-copy-id root@remote_host and it will prompt you.

If the prompt says you don’t have a private key to copy, then simply use ssh-keygen to generate one. Again, the prompts are very easy and self explanatory.

Good luck admin!

Contact us if you need help with this.

Share this article

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to Top