We had one droplet running Ubuntu 18.04 server previously. Now we created another droplet from the latest snapshot of the previous droplet. And then created a load balancer from these two droplets. After that we are facing two very serious issues :
2.We access the previous droplet using ssh based login. Now we created a new public-private key pair and using DigitialOcean’s console, copied the content of the public key to the ~/.ssh/authorized_keys file of the new droplet. Still we cant access the new dropler using ssh. Error is : Permission denied (publickey). Which virtually makes the server inaccessible except login using new droplet’s console. From console we can access new server using username and password of the previous server. How to fix the issue so the we can login to the new droplet from the local machine(s).
Thanks in advance.
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!
Hello,
Regarding your first question: I would recommend just pointing your domain name’s A record to your load balancer directly, then the load balancer would take care of balancing the traffic between your two droplets. The load balancer has health checks so if one of your droplets goes down, it would automatically route the traffic to the healthy one.
You just need to make sure that your load balancer is configured correctly. Here’s how to add droplets to your load balancer:
https://www.digitalocean.com/docs/networking/load-balancers/quickstart/
Regarding your second question: here’s a step by step article on how to access your droplet in case that you don’t have your SSH key added:
https://www.digitalocean.com/docs/droplets/resources/lost-ssh-key/
Hope that this helps! Bobby
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.