How do I copy/paste in EC2 Connect AWS - amazon-web-services

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.

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.

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...

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:
Bring up the putty window.
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.
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

The below works for me on my Windows 10 with Chrome browser
To Copy highlighted text from EC2 console to Clipboard:
Fn + Ctrl + Insert
To Paste from Clipboard to EC2 console at the cursor:
Fn + Shift + Insert

Related

how do i create a keyboard shortcut to upload a specific lambda function in vsCode?

I'm new to vsCode and want to streamline some basic workflows related to Lambda functions. For example, I want to create a keyboard shortcut to update "TestFunction." To do this today I have to:
Select the AWS Explorer extension in the left bar
Navigate in the Explorer bar to "TestFunction"
Right click "FirstFunction"
Select "Upload Lambda."
This brings me to a dialog to "select upload type" and allows me to choose between 'ZIP Archive' and 'Directory.' I want to select 'Directory'
This brings up a Finder dialog. I then navigate to the folder that holds the files for "TestFunction" and select this folder
This brings up a dialog that asks me to "Build Directory?" I select No
This brings up a confirmation dialog that says "This will immediately publish the selected code as the $LATEST version of Lambda: firstFunction. Continue?" I select yes
After going through these steps, the Lambda function is uploaded and deployed. I'd like to do this with a simple keyboard shortcut. Thanks in advance!

How to create new screen in gcp console, which will keep running?

I want to keep my console running of gcp vm.
how can I create new screen.
I know the command to
list of all screens is `screen -ls`
opening an existing screen is `screen -r nameofscreen`
closing the screen `ctrl ad`
but I don't know how to create new one?
To create a new screen window, press “Ctrl-A” and “c“

Deploying a function from the Cloud Console?

I have created a Pub Sub Function in the Console and I want to upload a folder with my project using the console and not using terminal, every time I have an update.
I use Python.
In the Docs they say I can find a button to upload ZIP, but there is nothing like this.
https://cloud.google.com/functions/docs/deploying/console
Question is :
How do I upload my project from Console ? I can see the default source code in console.
Do I need to call my entry file main.py or index.py ?
Do I need to set up requirement.txt file by myself? I can't see it in my project in my machine.
You have to click 'edit' button to edit the Function, then in the 'Source' tab, left to the source, there is a drop down, where you can see "Upload Zip".
Doing this in the Terminal seems to be easier :
sudo gcloud functions deploy Project_name

How to restore an accidentally deleted GPO. Please advise

I have deleted one GPO from DC (Windows server 2012 R2). How do i restore it back. Domain Function level is 2008 R2. Is there any option.? Please advise. Thanks
To restore a deleted GPO:
In the Group Policy Management Console tree, click Change Control in
the forest and domain in which you want to manage GPOs.
On the Contents tab, click the Recycle Bin tab to display the deleted GPOs.
Right-click the GPO to restore, and then click Restore.
Type a comment to be displayed in the history of the GPO, and then click OK.
When the Progress window indicates that overall progress is
complete, click Close. The GPO is removed from the Recycle Bin tab
and is displayed on the Controlled tab.
Source: Restore a Deleted GPO

Move file around in s3 in the browser

Is there a way to move a file/folder somewhere in the same bucket but in another place in the hierarchy using only the browser.
I know there is s3fuse or command line tools but I want to do it in the browser.
Using the AWS Console, you can right click on the original file, select Cut and then go to the new location and select Paste. This will move the file from the old location to the new one.