Digital Ocean console is trimming my ssh key.

June 11, 2019 161 views
Apache Ubuntu 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?

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.

Have another answer? Share your knowledge.