2021年3月22日 — In order to use ssh-copy-id without an existing key on the server, you will need to authenticate via password - as well as enabling root login.
The easiest way to copy your public key to an existing server is to use a utility called ssh-copy-id . Because of its simplicity, this method is recommended if ...
2011年9月16日 — Try logging into the machine, with ssh 'localhost', and check in: .ssh/authorized_keys to make sure we haven't added extra keys that you weren't expecting.
You might receive a prompt for the password of the root user on the appliance. Test the SSH key authentication: [user@localhost ~]$ ssh [email protected].