Copy files through RDP in a Amazon EC2 Instance - copy

I want to copy files through a Amazon EC2 Windows Server 2019 and my Computer. You can help me with that?

1 Open Remote desktop and click the local resource tab.
2 Check the clipboard box and click More
3 Check drives and click ok.
Now, you should be able to copy files.

Related

is there a way to work offline with vscode remote ssh to save cost?

I am using vscode ssh remote plugin https://code.visualstudio.com/docs/remote/ssh
to connect to gcp sandbox vm. gcp sandbox vm has an hourly cost if kept turned on.
most of the time I am reading or changing the code and I am not running any command in the VM's terminal. So, if I had the code offline, I would not need to keep the VM running and pay for each second of it.
Is there a way I can do this?
When using VSCode over SSH, you are running a VSCode server on the remote host which is used to read the files.
If you want to be able to open files locally, you will need to download them.
If you already have the files opened, you can disconnect from the VM and keep looking at them.
Another option to consider is mounting whatever file store you're using locally as a FUSE file system. Here is an example for git: https://github.com/presslabs/gitfs

Change default download folder when working remotely in VSCode in Windows

When working remotely via SSH or WSL in VSCode in MS Windows, I can right-click a file in the Explorer view and choose "Download", this will download the file to the local computer. But the default download folder is always C:\Users\$USERNAME\.ssh, which doesn't make sense for me. I can't find any settings related to this.
How can I change the default download folder in VSCode when working remotely via SSH or WSL?

No "open folder in container" or any other command in remote-containers vs code

I'm using a remote machine, and want to run a docker inside that machine (local->remote->docker) and wish to use the Remote development in Containers tools of vs code
Unfortunatlly, I do not see any of the actions after installing the extension.
My view (ctrl+shift+p -> type remote-containers)
While the tutorial has actions I don't even see:
You need to make sure you are not connected to your remote host via Remote-SSH in VSCode. If you are, you will not see "Open Folder in Container..." or the other options.
Try opening up VSCode without connecting using Remote-SSH. You will find that the option is now present.
To set up a remote Docker host, you first need to be able to access your remote host using key based authentication as describe here
You then set
"docker.host":"ssh://your-remote-user#your-remote-machine-fqdn-or-ip-here"
in setting.json.
Once that is setup, you can only attach to running containers. Test this out before proceeding:
Start a container on the remote host
Hit F1 in your vscode and then select "Attach to Running Container..."
You should see the container you started and you should be able to attach to this
Once you are past this point, you will need to create your devcontainer.json file as per the documentation
Make sure you have installed Remote Container extension.
and ssh as mentioned on the comment above.
Once installed, click on Docker icon, under containers, right click on the container you need to work with vcode and select attach vscode.
I had this issue when I opened vscode for the first time in a year after only needing to install it for some random project that wanted me to use "dev containers" for, I don't remember what.
But I don't care about dev containers anymore and I don't remember that project, however, vscode was functionally unusable because it opened in that old project directory and was trying to do... something with containers. I don't know, I don't care, I just wanted to open another folder so a junior programmer could use an IDE on my machine they're familiar with instead of emacs/vim/whatever.
The solution for me was to use the "extensions" tab CTRL+SHIFT+X, disable the "Dev Containers" extension, then use "File -> Open Recent Folder" to select some other directory. This gets around the "can't open in container" bug. If you don't have a history of other opened directories, I think you need to completely reinstall Vscode or something.

SFTP connection from Eclipse to Google Cloud Instance

I am struggling to connect my Eclipse Remote environment to my Google cloud Instance.
I have generated a public and private key with ssh-keygen on my mac and stored them in the ~/.ssh folder. I copied the public key to the google cloud using the metadata and added the key to the ssh keys listed. I also added the private key to eclipse in the SSH2 settings. Trying to connect give me error: Failed to connect sshd on " my ip-address".
The strange thing is that Filezilla can connect in this way, but `i would like the comfort from Eclipse. Can somebody help me with this problem??
If you were able to access by sftp with Filezilla that means that your ssh-keys are correct, I recommend you put the ssh-key in the metadata section of the instance, here is the link with the steps.
To connect with eclipse:
Try the Remote System Explorer (RSE). It's a set of plug-ins to do exactly what you are looking for.
RSE may already be included in your current Eclipse installation. To check in Eclipse Indigo go to Window > Open Perspective > Other... and choose Remote System Explorer from the Open Perspective dialog to open the RSE perspective.
To create an SSH remote project from the RSE perspective in Eclipse:
Define a new connection and choose SSH Only from the Select Remote
System Type screen in the New Connection dialog.
Enter the connection information then choose Finish.
Connect to the new host. (Assumes SSH keys are already set up.)
Once connected, drill down into the host's Sftp Files, choose a
folder and select Create Remote Project from the item's context
menu. (Wait as the remote project is created.)
If done correctly, there should now be a new remote project accessible from the Project Explorer and other perspectives within eclipse. With the SSH connection set-up correctly passwords can be made an optional part of the normal SSH authentication process. A remote project with Eclipse via SSH is now created.

Is there an Eclipse plugin that can replace the use of external tools such as Putty and WinScp

Every time I want to run my project on the remote server, I need to export it from Eclipse as a jar file, to transfer the file from my local machine to the remote server using WinSCP and then to use Putty to run it on the remote server. I am wondering is there a more suitable way of handling this, e.g. an Eclipse plugin that allows me to perform this straight from Eclipse.
This functionality is present in Eclipse, called Remote Systems Explorer.
Open the Remote Systems view by going to Window -> Show View -> Other....
Then right click in this view and select on New connection....
Select SSH Only as remote system type and click Next.
Fill in the necessary information such as hostname and connection name and click Finish.
Select the Connector node you just created from the Remote Systems view and choose Connect.... Enter your credentials and press Ok.
If you managed to log in, you will see a green arrow on the node indicating you are connected.
You can right click either Shells or Terminals and choose Launch Shell/Terminal. A new Remote Shell or Terminal should appear where you can type in commands.
It is also possible to remotely create files, open/edit and save them from within Eclipse.
More documentation can be found in the Eclipse RSE manual.