How to Connect to Remote SSH VPS Server in VSCode IDE Directly
12 views
Jul 4, 2025
Get the full source code of application here:
View Video Transcript
0:00
Uh hello guys, welcome to this video. So
0:02
in this video, I'll show you a VS code
0:04
extension which allows you to connect to
0:06
a VPS SSH server directly from your VS
0:09
code. So virtual private server. So
0:12
there is an extension that you just need
0:13
to install which is uh
0:17
provided by Microsoft. So if you just
0:19
search for SSH
0:22
in the extensions tab, this will be the
0:24
extension remote SSH. So it will
0:26
basically open any folder on the remote
0:29
machine using SSH extension of this. So
0:32
simply install this. I have already
0:34
installed it. It's a verified extension
0:36
from Microsoft. It's used by almost 27
0:40
billion developers. And after that once
0:42
you activate this extension you will see
0:44
this option appearing at the bottom left
0:48
corner of the screen. You will see this
0:50
option appearing. Simply click this
0:51
option and at the drop-down you will see
0:54
the series of options right here.
0:56
Connect to host. This is the most
0:58
obvious option by which you can select a
1:01
VPS. I already have a VPS running on my
1:04
free mediatools.com website. So now to
1:07
add a new SSH host you select the second
1:10
option and after that you simply provide
1:12
the
1:16
location where your SSH is located.
1:20
In this easy way you can add this. After
1:21
that adding this we basically select
1:26
the SSH server and then it will
1:28
basically setting up our SSH host
1:30
freemediatools.com. So here you provide
1:32
your password of your SSH and then it
1:35
will open the files and folder.
1:40
So it is setting up. It is downloading
1:42
and once again it opens up the SSH you
1:46
will see.
1:49
So in this easy way you can edit
1:52
directly all the files inside your SSH.
1:55
Again you just need to enter your
1:57
password of your SSH and then all the
2:00
files are loaded right here. You can see
2:02
freemediatools.com SSH and now all the
2:05
files it basically shows directly inside
2:08
your VS code. So in this easy way you
2:10
can access all the files that you see.
2:18
So in this easy way we can connect to
2:20
any SSH virtual private server using uh
2:23
this VS code extension. Simply install
2:25
this remote SSH and after installing it
2:29
simply at the top bottom
2:32
of the screen top left bottom of the
2:35
screen there will be this option. So
2:37
connect to host and if you want to
2:40
configure as your SSH host this is a
2:43
file to do it. I've already done that.
2:45
You will see that this is my host name.
2:49
This is the username port number.
2:53
So you basically create this file. You
2:56
basically provide the host name. Then
2:58
the IP address, the root port number and
3:02
then it actually
3:04
connects. So, thank you very much for
3:07
watching this video and also check out
3:08
my website freemediatools.com
3:11
uh which contains thousands of tools.