I am preparing to set up SSH keys on centos 8, but the ssh-copy-id is not available. How could i copy public key please?
Do you have password-based SSH access to an account on your server? Make sure the ~/.sshdirectory exist and has the correct permissions. And use the following command:
cat ~/.ssh/id_rsa.pub | ssh [email protected]_host "mkdir -p ~/.ssh && touch ~/.ssh/authorized_keys && chmod -R go= ~/.ssh && cat >> ~/.ssh/authorized_keys"
Feel free to ask your further probable questions or read a related article on:
7 days a week, 24 hours a day