- All right, you have just learned how
to use SSH from Linux.
You can also use SSH from Windows,
but you need to install an additional program.
And that's what I'm going to show you now.
So in order to work with SSH from Windows,
MobaXterm is the program that you want to use.
It's the most commonly used program
that allows you to establish SSH session
and even graphical sessions.
So here we go, MobaXterm free Xserver and tabbed SSH client
for Windows, that's the one that we need.
So I need to download.
And then I'm going to use the Home Edition.
I mean, you can always purchase the Professional Edition
if you want to, but there is no need to,
and in order to get to know it, just use the Home Edition.
There's a Portable edition, there's an Installer edition.
The Portable edition doesn't require you
to install anything,
and the Installer edition requires you to install.
The reason why there is this Portable edition
is that it might be convenient if you are on a computer
where you cannot install anything,
then you can use the Portable edition.
I want to have it on Windows,
so I'm going for the Installer edition.
So after that downloads, in the Downloads folder
you will find the MobaXterm_Installer.
You need to extract it
before you can actually do something with it.
So in Downloads, that is okay.
If you don't extract it, you get error messages
about files that could not be found.
And here we go, we have the installer,
and it's showing us automatically what we need.
So I'm going to run Next and accept the license
and Install the program.
(tones chiming)
And yes, it is okay.
And then Finish to complete the installation.
So at this point, MobaXterm should be available.
So let's check, moba, there we go, MobaXterm.
It needs to do a little bit of work
for the first-time startup.
And once it is done, this is what we get.
So this is Windows Defender Firewall.
I am going to allow everything.
Otherwise, it doesn't work so well.
So what do we have?
Well, we have this option to Start new remote session,
and that is what I want to do.
So I'm clicking on Session, and then I'm using SSH.
There are different protocols that can be supported,
but SSH is really what you want to do.
The Remote host, that's the name or the IP address
of the host you want to connect to.
So let's connect to the 141,
and I want to connect as user student.
So you need to tick the Specify username option,
and then you can actually connect as this user.
So here we go.
I'm getting a login prompt, an email login prompt.
I type the password, and yeah, I'm okay.
Let's do this password.
And you can even use a master password.
This master password allows you to store all your passwords
behind one password.
And that sounds like a good idea.
And then as you can see, I'm on CentOS, and on this CentOS,
we can see everything that I've done so far.
So this is the Windows way of remotely connecting
to any Linux server that you want.
The nice thing is that it is going to keep my session,
and the next time I need to restore, I need to get access,
then I can just click this session
from the MobaXterm window.
Now that we are talking about Windows access to Linux,
there is one more utility that I want to show you,
and it is WinSCP.
WinSCP is really a utility that you also need
in your Windows toolkit in order to work with Linux.
Don't click the wrong link.
This is WinSPC.
We don't need WinSPC.
We need WinSCP.
So I'm clicking on download,
and I am using the Go to download.
It's Windows, so it's always a good idea to verify
that you go to the right page,
and there we go, winscp.net.
And as you can see, it's quite popular,
172 million downloads so far.
I am using my WinSCP,
and it is right here.
So download, and the download will start shortly.
There we go.
So the file's already downloaded.
Now we can install it.
And so for all users, that's a good idea.
And yes, you can make changes.
And there we go.
And what is nice about WinSCP, it's using a GNU license,
so it's completely free and open source software.
You wanna go for the typical installation.
Then you do your Next.
You'll probably like the Commander view,
and then you Install.
And WinSCP, well, is giving you a nice graphical interface
that allows you to copy files around.
So you can decide for yourself if you want to do a donation.
If you don't, it's okay.
If you do, then you can do that in the page
as was just proposed.
I am just going to look for it using winscp.
There we go, WinSCP App.
And I'm getting a pop-up window, and in that pop-up window,
I need to log in.
Log in using file protocol.
File protocol might be SFTP or SCP.
Other protocols are supported as well,
like WebDAV and Amazon S3.
That's just what I want.
I just want to show you SCP, secure copy.
So this is the Windows alternative for secure copy.
And I am using 192.168.29.141 again,
on port number 22, which is the SSH port.
I'm using my very secret user account.
And there we go, Password.
I'm clicking Save because I like saving it.
And oop, and next I'm clicking Login.
Now first time you connect using SSH,
WinSCP is receiving the SSH key fingerprint
of the remote host, and you want to accept it.
There we go.
Then it's asking for the Password,
and I am entering my Password.
And after entering the Password, this is what we see.
So this is the Windows directory on the left,
and on the right we have the Linux directory,
and guess what?
You can just copy/paste files by using drag and drop.
So there we go.
The transfer is completed, and as you can see,
my file1 has been copied from the Windows machine
to the Linux machine.
WinSCP, MobaXterm.
That is really what you want to install
on your Windows computer
to make working with Linux a lot easier.