'How do I copy/paste in EC2 Connect AWS
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.
Solution 1:[1]
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.
Solution 2:[2]
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.
Solution 3:[3]
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"
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | John Rotenstein |
Solution 2 | MikeTwo |
Solution 3 | Monarch Wadia |