How do I copy/paste in EC2 Connect AWS

Viewed 13428

I cannot use command+c/command+v on mac to copy paste text into my aws ec2 session window. How do I enable copy paste so that I can copy text from my local clipboard or from another window in ec2 session ?

I connected with "EC2 Instance Connect" from the console. Cmd-v just pastes a space.

7 Answers

To test this situation, I launched an Amazon EC2 Linux instance and connected via EC2 Instance Connect.

I had the same experience as you:

  • Highlighting text 'copies' it to the clipboard
  • Right-clicking 'pastes' the clipboard
  • However, copying to the clipboard outside of the window and then attempting to paste it didn't work

This was using Google Chrome.

I then tried again using Safari and it worked fine.

So, there seems to be some strange behaviour in some browsers.

I had the same problem. When I would paste, it just added a space instead of the clipboard contents. Double-pasting didn't seem to work either.

This sounds weird but what worked for me was opening a new blank tab and pasting in the address bar. I had to re-copy the content (it seems like the clipboard had lost it?) But once it worked in the address bar, I switched tabs and it worked in my EC2 Connect Console.

YMMV.

I highlighted the text, then used my keyboard's menu button (located next to CTRL) to pop up the normal browser right-click menu... then clicked "copy"

I had the same problem.This is what I did: ctrl+c the text or command you want to copy and then go to the terminal and press right click. it worked

I had the same issue with copying and pasting on my putty terminal (Mac M1). This is what I did:

  1. Bring up the putty window.
  2. On the left, you'll find list of categories to choose from. Click on "Selection" where you'll see list of selection settings you can modify.
  3. Change the settings below from "No action" to "PRIMARY" and try opening the terminal. Mouse Paste action: PRIMARY {Ctrl,Shift} + Ins: PRIMARY Ctrl+ +{C,V}: PRIMARY

Hope this helps!

I had the same issue. CTRL+V doesn't seem to work and double CTRL+V doesn't seem to work either.

What did work was right-click + paste

In many terminals ctrl+c and ctrl+v will not work for copy & paste. In that case, you can use "ctrl+insert" for copy and "shift+insert" for paste, in some keyboard "insert" button won't work alone, in that time, you need to press "fn" also...

Related