"If a worker wants to do his job well, he must first sharpen his tools." - Confucius, "The Analects of Confucius. Lu Linggong"
Front page > Programming > ssh-copy-id command on any machine

ssh-copy-id command on any machine

Published on 2024-08-20
Browse:542

ssh-copy-id command on any machine

The first step to harden a Linux machine is to enable passwordless logins and disable password-based authentication.

However, the passwordless login requires a pair of public/private SSH keys, and the public key should be copied to the server and stored in a file named authorized_keys located in the .ssh folder inside user's home directory.

One simple way to do that is to use a command called ssh-copy-id, but this command is not available on Windows and Mac machines.

In this repository, you'll find a Python implementation of ssh-copy-id command for all platforms.

Release Statement This article is reproduced at: https://dev.to/omidshojaee/ssh-copy-id-command-on-any-machine-18k3?1 If there is any infringement, please contact [email protected] to delete it
Latest tutorial More>

Disclaimer: All resources provided are partly from the Internet. If there is any infringement of your copyright or other rights and interests, please explain the detailed reasons and provide proof of copyright or rights and interests and then send it to the email: [email protected] We will handle it for you as soon as possible.

Copyright© 2022 湘ICP备2022001581号-3