I am working in AWS Instance > Ubuntu20.08. There is a GoLang-JS project which I want to open and edit in the VScode of My computer (windows 10). How to do it.
-
Please re-read your question & correct or clarify details. Ubuntu releases are year.month in format, so 20.08 represents 2020-August where no release occurred, so what are you asking about. (Ubuntu also has specialist products that use the year format, eg. Ubuntu Core 20 is the 2020 release - but the are different systems) – guiverc Jul 14 '22 at 08:36
2 Answers
There's a few ways you can do this.
you can use Github to store a cloud central version of the code, which you push to update on your desktop, and pull to download on the aws server. This is the method I use for my code. You can setup webhooks on Github to automatically trigger a code update on the aws server if you want to take it a step further.
you can use WinSCP to set an automatic update on file detection between your windows machine and the aws machine. It's kind of top heavy, and performs lots of transfers, so that might not be the best.
you can use filezilla and setup a connection using sftp with the aws server, and manually transfer the new code each time.

- 197,895
- 55
- 485
- 740

- 51
- 6
-
11st method sounds best. This one, right? :-
docs.github.com/en/developers/webhooks-and-events/webhooks/creating-webhooks
– aakash4dev Jul 14 '22 at 08:54 -
git push -u origin main
on ubuntu VM give this error :Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
– aakash4dev Jul 14 '22 at 09:02 -
1@aakash4dev - Yep, that's the right. You'll need a deploy server running but that's trivial. There are simple python web servers all the way to php and apache.
That error means the git configuration for Ubuntu VM is trying to use a password to push the code to Github. You'll need to create a key pair first. On the VM, open a terminal and run
– user180977 Jul 14 '22 at 09:25ssh-keygen -t ed25519 -C "Github"
. Then runcat .ssh/id_ed25519.pub
. Copy that output. Open your Github account and create a new key pair. link
there's an extension you can try to work with if you have SSH access.
It's called Remote - SSH and it's owned by Microsoft.
- Open the command palette with
CTRL+Shift+P
- Select "Remote-SSH: Connect to Host..."
- Follow the config steps.

- 11