By pjpark
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.
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!
Accepted Answer
I got it. I just needed to ssh in as root to set everything up.
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
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.