Are you still using Putty and SSH commands to login to your server,
and sharing or editing files is pain in the ass for you.
Then you came to the right place Welcome to creative je
In this video we are going to see how we can easily access our ssh server through Vs code
and share files and folders between our computer and server easily
Shivam is here so you don’t need to go anywhere so let’s get started.
For this you will need your server address and private key or password
Which I assume you all have
And this works on all the operating system whether you have Windows 10 or Mac or Linux
Now open vs code and go to extensions tab Search for ssh
And install this remote ssh extension After installing you will see this computer
icon so just hit that guy Now make sure you are on ssh targets
Then click on the plus icon
Enter the ssh command which you use for connecting your SSH
I will just use my ip and address and username, in AWS it’s the name of your operating system
Hit enter now Select the first location where the configuration
will be saved so that you don’t type it again and again
And now you can see that we have the server name here, so just click on this new window
icon
It will open the SSH in a new window you may need to type your password also and then hit
continue
Now it’s connected you can see in the bottom task bar
If I open the terminal by pressing “Ctrl + `”
Then you can see it’s opening in my server
If you want to change your configuration then click on this settings button
And select your location
As here you can see that I have multiple servers you can add as many as you want.
In the host instead of IP you can type any name
And then save the file you can see the name has been changed
If you have a private key file you can specify it in the IdentityFile like this and in windows
make sure you type the full path and specify the private key not the public key
Now you can connect to the server easily So this time open it in same window, windows
are not cheap so don’t waste :P
Now go to the files tab and click on open folder
From here you can select any particular folder which will be opened by VS code
You can see all the files and folders here visually which is awesome
And you can directly open your codes and start coding
like you would do in your local computer and you will get these options on right click.
If you want to upload anything then you can just do it by dragging from the finder
And now you can see my monkey has been uploaded
Okay you don’t like my money I will remove him otherwise he will eat your banana too.
And if you want to upload your folders then you can do that too by dragging.
If you can’t do something with GUI then your best friend terminal is always there
you just need to command him and he will obey
Okay guys that’s it for this video I hope you enjoyed. And also my best friend like
and subscribe is also below so please consider giving them command and I promise they will
obey.
What else ? I know you guys are not going to support me on patreon so I will just say
thanks for watching.
Bye bye see you soon