Question

Digital Ocean console is trimming my ssh key.

Posted June 11, 2019 529 views
ApacheUbuntu 18.04

I copy the full key from my computer, then I paste into the DO console and it doesn’t not paste the entire key. What’s going on?

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.

×
2 answers

Hey there,

The Copy/Paste functionality of our web console is a bit odd; the code backing it is custom due to the way the VNC window is implemented for accessing your Droplet. It isn’t a good idea, in my experience, to rely on the console for long copy/pasting like an SSH key.

My recommended method to get the key on the Droplet is over SSH itself. You can enable PasswordAuthentication for your Droplet by modifying your /etc/ssh/sshd_config file. Once set to Yes restart the SSH service and connect via an SSH client for a more stable connection. You can then modify your ~/.ssh/authorized_keys file to add the appropriate public key.

Regards,
Ethan Fox
Developer Support Engineer II - DigitalOcean

(Check out our fantastic community articles: https://www.digitalocean.com/community)

I thought it was just me. This solved my problem, thx.

Submit an Answer