By logicallimit
I have a droplet. And I am using CentOS Web Panel Pro edition also.
I was able to create and use SSH key for root user to login through SSH.
But how can I create and allow others users that I created to access SSH using keys.
Suppose I created a new user “jack”. Now how can I give make it access SSH using Key.
I created a .ssh folder inside “/home/jack/.ssh” and copied the “authorized_key” file. I updated the public key in this file from the one I generated using puTTy for this new user.
Now when I try to access the SSH using the corresponding private key, I get an error message in SSH console as below:
Using username “jack”. Server refused our key
Can someone help me in this?
Thanks
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!
The first thing I would check is the ownership and permissions on /home/jack/.ssh to ensure that they are set up in the same way as those in /root/ but with ownership given to the jack account.
Try connecting to the new account with ssh -v jack@[ip_address] This will provide much more verbose output and may provide some additional details to help you troubleshoot.
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.