By Eskyocha
So I’m really struggling with linking my virtual private server to a virtual desktop. I want to add my custom bot to the virtual desktop to work on it in there.
What I’ve done so far:
droplet made through DigitalOcean with a Ubuntu 16.04 setup
created public and private keys through PuTTyGen
went through initial server setup: https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-16-04#option-2-manually-install-the-key
connected my public key to my droplet. Cut key from puttygen and pasted into authorized_keys
Installed TightVNC and followed the configuration instructions: https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-vnc-on-ubuntu-16-04
Regardless, when I try to login from my windows terminal with the user I created that has full admin/sudo access (even tried making my windows terminal linux-friendly through developer mode), I STILL get this error: –Putty error: No supported authentication methods available (server sent: publickey) –
I followed multiple fixes from various forums, but still no luck. So frustrating…Please help?
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!
Unless you’re using PuTTy to log in to the Droplet, a private key generated by PuTTy won’t work with a standard shell log in – those keys are specific to PuTTy and would need to be used by PuTTy only.
If you’re using something such as:
ssh user@ip -i /path/to/private.key
I would recommend generating a second key pair on the Droplet itself and storing the private key to your local environment and placing the public key in your authorized_keys file.
You can generate a standard OpenSSH key by using ssh-keygen.
RSA Key
ssh-keygen -a 500 \
-b 4096 \
-C "" \
-E sha256 \
-o \
-q \
-t rsa
ed25519 Key
ssh-keygen -a 500 \
-C "" \
-E sha256 \
-o \
-q \
-t ed25519
PuTTy works a little differently than your standard Terminal emulator (such as Terminal on MacOS or even most linux distros). They keys it uses are only usable by PuTTy, FileZilla, and a few other select software applications.
While PuTTy will generate an OpenSSH Key, it’s often easier to generate one on the Droplet and then use it instead so you don’t have to worry about the differences between the two.
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.