Created a new droplet, but did not get a new IP address

May 6, 2015 3.5k views
Ubuntu Getting Started DNS

Hi,

I destroyed my old droplet and created a new one (the same domain name) with an SSH key. However, I did not get a new ip address and password, so when I try to connect my droplet with PuTTY using my old IP address I get an “Access denied”

Also when I try to add a new domain, I select my droplet and the old IP address appears. So I can’t create a new DNS

Can someone help me? It’s been 5 days since I try to host my website and STILL I can’t get it to work. I’m kind of mad and tired but hey, at least I’m “learning”

Thank you

3 comments
  • PuTTY might be using old info from the ‘known_hosts’ file. This file is normally found in a .ssh directory, but PuTTY stores this info in the Windows Registry under HKEYCURRENT_USER\Software\SimonTatham\PuTTY\SshHostKeys

    Rename the key referencing your droplet and try to connect again.

  • Have you clicked on the Add SSH Keys button and added your SSH Keys before clicking on the Create Droplet button?

  • Yes I did, but I found out the problem: i wasn’t using Pageant!

2 Answers

You don’t always get a new IP and if you picked your SSH key, you won’t get a password either.
Access denied means you’re using the wrong public/private key. DNS will work fine if it’s the same IP.

  • Thanks. The thing is I can’t log in on my IP address, even if I use the right login and password… it’s like I’m using a wrong password

Creating a new Droplet in DO will re-use any previously used IP addresses, but it’s not always the case.

If you wanted to use another IP address instead of the previously used IP address, then do this:

  • 1. Power off your droplet with the old IP address.

  • 2. Create a new Droplet and don’t forget to add your SSH key. You should get a new IP address.

You can now delete the other Droplet.

Have another answer? Share your knowledge.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!