The console in the digital ocean like this :
I try to copy and paste my username and password, but it does not work
I try ctrl+v and right click on the mouse. It does not work
How can I do it?
The console in the digital ocean like this :
I try to copy and paste my username and password, but it does not work
I try ctrl+v and right click on the mouse. It does not work
How can I do it?
I have the same problem. I needed to add ssh key to the existing droplet. So, best solution was to upload file to the droplet from dropbox and copy text.
On the authorized web console of your droplet or on the connected to your droplet local terminal execute code:
curl https://www.dropbox.com/s/*******/****?dl=1 -o temp -J -L
cat temp >> ~/.ssh/authorized_keys
Use curl to download a Dropbox folder via shared link (not public link)
Alternatively, you can also upload your file to file.io and curl that in a more simple way.
file.io also deletes the file after access.
Step 1: Upload file to file.io
Step 2: Copy the generated link that file.io generates
Step 3: Curl the webpage and save it. (First command)
Step 4: Append it to the "authorized_keys" file in your .ssh folder.(Second command)
Commands to enter:
curl fileIOLink -o fileNameOnServer
cat fileNameOnServer >> authorized_keys
I believe this solution helps as it appears easier to simply upload to file.io since it does not require an account to use.
paste this code in console (left click on empty black screen in digital ocean console, then select Inspect - after that, choose the console tab):
!function(){function t(){function n(t,e){s=s.concat(RFB.messages.keyEvent(t,e))}var o=e.shift(),s=[],i=o.charCodeAt(),c=-1!=='!@#$%^&*()_+{}:"<>?~|'.indexOf(o),r=XK_Shift_L;c&&n(r,1),n(i,1),n(i,0),c&&n(r,0),rfb._sock.send(s),e.length>0&&setTimeout(t,10)}var e=prompt("Enter text to be sent to console").split("");t()}();
it will open a prompt box, just paste the text you want to paste - and it will paste it on console.