How the heck do I copy or paste anything from the web console? I’ve tried both Safari and Chrome. I’m trying to get ssh to work but I can’t copy/paste keys or get authorized any other way.
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.
I got it. I just needed to ssh in as root to set everything up.
this is still a problem for me in 2019. How is this like this?
Hello, all
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.
This should do the job for you as well.
The other option is to temporary enable the PasswordAuthentication
from no to yes in order to access your droplet using password and then once you’ve entered your key to disable the PasswordAuthentication again. This way is considered more secure than uploading the key to a Dropbox in case you don’t have any other server to us.
sudo nano /etc/ssh/sshd_config
PasswordAuthentication
from “no” to “yes” and save the filesudo nano ~/.ssh/authorized_keys
sudo nano /etc/ssh/sshd_config
PasswordAuthentication
from “yes” to “no” and save the fileHope that this helps! Regards, Alex
I still can’t copy and paste into the console. I need to update my authorized keys and what should take 2 minutes is taking more than an hour, with still no resolution in sight.
Edit: What I ended up doing was copying my id_rsa.pub to a public server, wget
ing it to my DO, and then yanking and pasting into ~/.ssh/authorized_keys
with vim.
Same problem here: Reversed capitalisation; Cannot Copy/Paste. Why am I having problems I had during the 1980’s on DEC Terminal on a 2400 baud modem? Very frustrating. Just trying to update my authorized_keys since SSH gives “Permission denied (public key)”.
Hey everyone, I am a product manager here at DigitalOcean and I wanted to send a quick update about this issue. We just released the ability to paste text into our Cloud Console! Give it a try and let us know if there is anything else we can help with. Thanks, Keith
Was locked out due to disabling password authentication and Permission denied (publickey).
On a Mac, wrote an AppleScript to type.
In Script Editor located /Applications/Utilities/Script Editor
tell application "System Events"
set textToType to "ssh-rsa AAAAB..."
delay 20
repeat with i from 1 to count characters of textToType
keystroke (character i of textToType)
delay 0.6
end repeat
end tell
Make sure to have ~/.ssh/authorized_keys already open in an editor and in insert mode waiting to type
Press play
After a 20 second delay (hopefully, enough time to change to the console browser window ready for the typing to start) this will type the text inside set textToType to
emulating keystrokes
You know how I got this to work after not finding any workable solution?? Logged into console, edited ~/.ssh/authorized_keys using NANO and manually typed out the new ssh key…
Hello, all
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 refer to the below articles:
https://docs.digitalocean.com/products/droplets/how-to/connect-with-ssh/ https://docs.digitalocean.com/products/droplets/how-to/connect-with-ssh/openssh/ https://docs.digitalocean.com/products/droplets/how-to/connect-with-ssh/putty/
Regards, Alex
Hello, all
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 refer to the below articles:
https://docs.digitalocean.com/products/droplets/how-to/connect-with-ssh/ https://docs.digitalocean.com/products/droplets/how-to/connect-with-ssh/openssh/ https://docs.digitalocean.com/products/droplets/how-to/connect-with-ssh/putty/
Regards, Alex
as of 2022, i don’t even know how to select text!
but much appreciated for even providing a web console. It’s really handy on my iOS device as the connection stays open, and even re-connects really well! Just need to make the signal functions work…
This comment has been deleted
Friends after ~40 min of frustration trying to copy-and-paste my original password on my first login from my Chromebook, I found an easy solution.
done!!!