Question

copy and paste into console

How do you copy and paste into the console?

Subscribe
Share

I just signed up and encountered this issue right out of the gate. I’ll be bailing on DigitalOcean and sticking with my Windows server.

None of the solutions here are acceptable. The only acceptable solution is to be allowed to paste your password. I have enough to think about while evaluating a new service and trying to figure out if it’s going to work for my purposes.

I just signed up and encountered this issue right out of the gate. I’ll be bailing on DigitalOcean and sticking with my Windows server.

None of the solutions here are acceptable. The only acceptable solution is to be allowed to paste your password. I have enough to think about while evaluating a new service and trying to figure out if it’s going to work for my purposes.

Same problem, i am not able to paste contents into digital ocean console. tried both the options. This is my first time logging in, already my experience is bad. If this is not addressed right away, i need to bail out.

Seriously, why do you have to jump hoops just to do the fundamental operation of pasting in your ssh key in .ssh/authorized_keys

Is there an easier way?

Download a quick putty interface from the web : https://www.chiark.greenend.org.uk/~sgtatham/putty/,

use your server credential username and password to log in.

Type: ls to see all the files in your directory

Type: cat yourdomain.csr to display the csr files

highlight from beginning to end

Type: Ctrl c to copy and used anywhere you need it to generate the ssl key.

I pasted mine on Godady.

Hope that help others. cheers

Neither of these solutions worked for me. When I right click in the console window, opened from my panel, nothing happens. Am I missing something?

Any help is appreciated, thanks.

buzz


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

Hey everyone, I’m 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

such a bullshit console. i just wanted to add one more ssh pub key to our server. And i cannot login through the old ssh pub key. So what i have to do is,

  1. Open digital ocean panel click the access button then i will received a crazy long temp password like: 1hj2123h123h12h31lk2n31lk2n
  2. Open the console from digital ocean website, enter this bullshit password manually because do console didn’t support copy&paste.
  3. I will be required to reset the password, then that means i have to enter that password one more time!!!
  4. After reset, i try to edit the know_hosts file under ~/.ssh/, then once again, i cannot paste the ssh pub key. So i have to enter those pub key manually??? Can you believe it?
  5. Then i decided to switch to mac terminal, but i have to enable password login on remote server.
  6. Enable that password login support.
  7. Finally i add that pub key.

No copy and paste on console? Please add the feature, stop wasting our time!

such a bullshit console. i just wanted to add one more ssh pub key to our server. And i cannot login through the old ssh pub key. So what i have to do is,

  1. Open digital ocean panel click the access button then i will received a crazy long temp password like: 1hj2123h123h12h31lk2n31lk2n
  2. Open the console from digital ocean website, enter this bullshit password manually because do console didn’t support copy&paste.
  3. I will be required to reset the password, then that means i have to enter that password one more time!!!
  4. After reset, i try to edit the know_hosts file under ~/.ssh/, then once again, i cannot paste the ssh pub key. So i have to enter those pub key manually??? Can you believe it?
  5. Then i decided to switch to mac terminal, but i have to enable password login on remote server.
  6. Enable that password login support.
  7. Finally i add that pub key.

No copy and paste on console? Please add the feature, stop wasting our time!

Hi, I have developed the following script based on another one, i lost its link

What I did is that I made it so it sends the whole text/cmd in one go also I added the ability to send line breaks when typing “\n” into the text, finally I made it so click enter at the end of each command.

The script is in a bookmarket format, just create a bookmarket and paste the following script into the address field

javascript: (function () {
	var s = prompt("Enter text to be sent to console, (This wont send the enter keystroke)");
	s = s.replace(/\\n/gi, String.fromCharCode(13));
	var t = s.split("");
	t.push(String.fromCharCode(13));
	console.log(t);
	var i = [];
	t.forEach(f);
	console.log(i);
	rfb._sock.send(i);
	function f(character) {
		var code = character.charCodeAt();
		var needs_shift = "!@#$%^&*()_+{}:\"<>?~|".indexOf(character) !== -1;
		var shift = XK_Shift_L;

		if (needs_shift) {
			key(shift, 1);
		}
		key(code, 1);
		key(code, 0);
		if (needs_shift) {
			key(shift, 0);
		}
	}
	function key(keycode, down) {
		i = i.concat(RFB.messages.keyEvent(h(keycode), down));
	}
	function h(e) {
		switch (e) {
		case 13:
			return XK_Return;
		default:
			return e;
		}
	}
})();

Hi, I have developed the following script based on another one, i lost its link

What I did is that I made it so it sends the whole text/cmd in one go also I added the ability to send line breaks when typing “\n” into the text, finally I made it so click enter at the end of each command.

The script is in a bookmarket format, just create a bookmarket and paste the following script into the address field

javascript: (function () {
	var s = prompt("Enter text to be sent to console, (This wont send the enter keystroke)");
	s = s.replace(/\\n/gi, String.fromCharCode(13));
	var t = s.split("");
	t.push(String.fromCharCode(13));
	console.log(t);
	var i = [];
	t.forEach(f);
	console.log(i);
	rfb._sock.send(i);
	function f(character) {
		var code = character.charCodeAt();
		var needs_shift = "!@#$%^&*()_+{}:\"<>?~|".indexOf(character) !== -1;
		var shift = XK_Shift_L;

		if (needs_shift) {
			key(shift, 1);
		}
		key(code, 1);
		key(code, 0);
		if (needs_shift) {
			key(shift, 0);
		}
	}
	function key(keycode, down) {
		i = i.concat(RFB.messages.keyEvent(h(keycode), down));
	}
	function h(e) {
		switch (e) {
		case 13:
			return XK_Return;
		default:
			return e;
		}
	}
})();

Hi, I have developed the following script based on another one, i lost its link

What I did is that I made it so it sends the whole text/cmd in one go also I added the ability to send line breaks when typing “\n” into the text, finally I made it so click enter at the end of each command.

The script is in a bookmarket format, just create a bookmarket and paste the following script into the address field

javascript: (function () {
	var s = prompt("Enter text to be sent to console, (This wont send the enter keystroke)");
	s = s.replace(/\\n/gi, String.fromCharCode(13));
	var t = s.split("");
	t.push(String.fromCharCode(13));
	console.log(t);
	var i = [];
	t.forEach(f);
	console.log(i);
	rfb._sock.send(i);
	function f(character) {
		var code = character.charCodeAt();
		var needs_shift = "!@#$%^&*()_+{}:\"<>?~|".indexOf(character) !== -1;
		var shift = XK_Shift_L;

		if (needs_shift) {
			key(shift, 1);
		}
		key(code, 1);
		key(code, 0);
		if (needs_shift) {
			key(shift, 0);
		}
	}
	function key(keycode, down) {
		i = i.concat(RFB.messages.keyEvent(h(keycode), down));
	}
	function h(e) {
		switch (e) {
		case 13:
			return XK_Return;
		default:
			return e;
		}
	}
})();

I had a machine crash, and needed to setup another one with SSH access. I got the console login ok, but no way to paste my public key there. Just spent a whole day trying to find a way to do this.

My solution, finally was to put the public key on a public dropbox folder, then in the console, use:

curl 'https://dl.dropbox.....' > temp1
cat temp1 >> .ssh/authorized_keys

The attached JS snippet never worked for me, and I didn’t have the patience to debug/improve the snippet (maybe that was a mistake since I wasted a whole day). Some versions drop characters, some changed them, some capitalize during the script paste action.

I might understand security issues which caused DO to decide not to allow copy-paste in the console, but they must supply an alternative way to upload an SSH key.

This issue is from 2013. It’s about time DO solved this. Thanks.

I had a machine crash, and needed to setup another one with SSH access. I got the console login ok, but no way to paste my public key there. Just spent a whole day trying to find a way to do this.

My solution, finally was to put the public key on a public dropbox folder, then in the console, use:

curl 'https://dl.dropbox.....' > temp1
cat temp1 >> .ssh/authorized_keys

The attached JS snippet never worked for me, and I didn’t have the patience to debug/improve the snippet (maybe that was a mistake since I wasted a whole day). Some versions drop characters, some changed them, some capitalize during the script paste action.

I might understand security issues which caused DO to decide not to allow copy-paste in the console, but they must supply an alternative way to upload an SSH key.

This issue is from 2013. It’s about time DO solved this. Thanks.

I had a machine crash, and needed to setup another one with SSH access. I got the console login ok, but no way to paste my public key there. Just spent a whole day trying to find a way to do this.

My solution, finally was to put the public key on a public dropbox folder, then in the console, use:

curl 'https://dl.dropbox.....' > temp1
cat temp1 >> .ssh/authorized_keys

The attached JS snippet never worked for me, and I didn’t have the patience to debug/improve the snippet (maybe that was a mistake since I wasted a whole day). Some versions drop characters, some changed them, some capitalize during the script paste action.

I might understand security issues which caused DO to decide not to allow copy-paste in the console, but they must supply an alternative way to upload an SSH key.

This issue is from 2013. It’s about time DO solved this. Thanks.

I had a machine crash, and needed to setup another one with SSH access. I got the console login ok, but no way to paste my public key there. Just spent a whole day trying to find a way to do this.

My solution, finally was to put the public key on a public dropbox folder, then in the console, use:

curl 'https://dl.dropbox.....' > temp1
cat temp1 >> .ssh/authorized_keys

The attached JS snippet never worked for me, and I didn’t have the patience to debug/improve the snippet (maybe that was a mistake since I wasted a whole day). Some versions drop characters, some changed them, some capitalize during the script paste action.

I might understand security issues which caused DO to decide not to allow copy-paste in the console, but they must supply an alternative way to upload an SSH key.

This issue is from 2013. It’s about time DO solved this. Thanks.