By shoreshotweb
Created my first droplet. Was excited to see the SSH RSA option in place of the traditional username and password, so I generated my key, plugged in the response code. I launched my server, and it asks for a login.
Since I used the SSH RSA option, no login information was emailed to me. How do I log in?
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!
This question was answered by @ChrisJPugh:
Not using Ubuntu, however, my first attempt failed also, and it proved to be a corrupt SSH key, thus was defaulting to a basic password request.
This is what I did. issued,
ssh-keygen -t rsa -b 4096 -C “$root@$11.22.33.44 -$(date -I)”
Replace ‘root’ with your username, and ‘11.22.33.44’ with the IP address of your created droplet.
The above command will also ask you to provide a key password, and assuming you are using linux as you client, will create the files ‘id_rsa’ and ‘id_rsa.pub’ in the .ssh directory of whichever user you are currently logged in as on your local machine.
Now, paste the contents of the generated ‘id_rsa.pub’ file, for example, as root, that would be,
/root/.ssh/id_rsa.pub
into the ssh key section on the droplet create page, or ssh key create page.
Once the droplet is created, logging into your droplet with, is simply done by issuing,
ssh root@11.22.33.44
You will of course be asked for your key password, if you created one.
HTH.
Chris.
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.