By gbt
Each time I attempt to set up my new Droplet I get stuck right here. ssh-copy-id doesn’t work and so I can’t get my new user login to work. I’ve tried some fixes and just gotten more in the weeds. It seems I’m not the only one with this problem but there are different fixes so I’m just going to copy what I’m getting here. I’ve also tried to copy the key manually like it’s mentioned in this tutorial but still no dice… Please help!
ssh-copy-id USERNAME@IP-ADDRESS /usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: “/Users/USERNAME/.ssh/id_rsa.pub” /usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed /usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed – if you are prompted now it is to install the new keys Permission denied (publickey).
Thanks for any help!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Is this issue fixed? Even am facing the same issue since a week. Unable to do ssh-copy-id for the new user created
I am facing the same issue and the solution provided above did not solve my problem…If anyone has fixed this issue with some other approach kindly help…
Oh, and another thing… If you’re trying to establish root credentials into another server, then you’re violating a best practice. There is a valid security reason to not have root keys enabled. As it stands, a hacker would need to compromise the lower level access, then elevate privileges and bypass another layer of security.
That’s why the config change above would work if you were trying to establish root access from another server. Basically, you would have to violate your security policy to copy the key. Creating a bypass is not recommended.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.