Question

How do you connect using PuTTY (SSH) in a format Digital Ocean likes?

Posted February 19, 2019 472 views
DigitalOceanUbuntu 18.04

Seriously, those articles in DigitalOcean are a sad, sad, sad joke. I’m refering to this one: https://www.digitalocean.com/docs/droplets/how-to/connect-with-ssh/putty/

I’m using: Windows 10, PuTTY or MobaXTerm or Bitvise SSH client, they give the same “results”.

In the sad tutorials it says you must create your pair of jeys using PuTTY Key Generator. So I did it as it says. It generates a key tat starts with:

ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEAhv+3iCamfYpQlU …

GREEEEEEEEEEEEEEEEEEAAAAAAAAAAAAAAAAAAAAAATTTTTT!!!!

Now where the heck do I have to put this string???????????????

In my profile under security??????????????

Nahhhhhhhhh it must be placed in the Ubuntu server in the ~/.ssh/id_rsa.pub file

But then it starts with the joke of a terminal DigitalOcean has. You cant copy paste, because it seems it will only take the first 256 characters or so, adding to that, it will graciously translate lowercase to uppercase and viceversa, a complete joy, a wonder of engineering

You know, there are some millions of users using Windows, much more than the people who uses a Mac from a Starbucks, it was great when you could sign in using a simple password and not requiring SSH pairings. Since now its the only way to connect to your servers, is there a simpler way to place the required keys??????

Now, if I generate the keys in the server, the question is exactly the same. How the heck do I transfer the private key to my Windows? I can’t use ftp, ssh or whatever.

This other article is a joke also: https://www.digitalocean.com/community/tutorials/how-to-set-up-ssh-keys–2

When I do the ssh-copy-id as instructed it NEVER asks for the account’s password, so it results on a “Permission denied (publickey)”,

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

Hello,

You can try to remove or rename any existing ssh keys and create a new one using the steps in the article you’ve pasted - https://www.digitalocean.com/community/tutorials/how-to-set-up-ssh-keys–2

The most likely reason why you’re not getting a password prompt when you run the the ssh-copy-id is because you’re trying to connect using a ssh key which is not accepted.

To be sure you can ssh to your server using -vvv to see a more verbose output of the connection:

ssh -vvv root@yourserver

Let me know how it goes.

Alex

by Etel Sverdlov
SSH keys provide a more secure way of logging into a virtual private server with SSH than using a password alone. With SSH keys, users can log into a server without a password. This tutorial explains how to generate, use, and upload an SSH Key Pair.
Submit an Answer