Hello, everyone.
So in this video we are going to see the next port and
protocol. That is SSH.
so SSH stands for
secure shell
it has the port number 22.
The usage of SSH protocol is to
provide secure and encrypted
communication between a client and a
server.
SSH is mainly used to do a
remote login to any client or any server.
So, let's see the Practical of how we can use SSH.
to perform a remote login into any
computer
So to start with SSH you have to open up your terminal and
you have to type SSH.
And then space whatever username you
want to log in.
Into the remote computer. So let's say there
is a user that is admin that is
being installed or added into the remote computer.
Then you have to type at the rate the IP address of
the remote server.
So I have given the IP address 192 168 43.213.
And then you can specify the default port.
You do not need to specify the default Port
if the remote server is working on 22
itself. If it is working on any other
different port than 22 then you
can specify using hyphen p
After you hit enter you can see are you sure
you want to continue connecting? You just have to type. Yes.
To make the decision as yes, and then it will ask you
for a password.
To connect to the SSH server. So after you give
the right password you can see you are connected to
the remote server. That is parrot security.
Now I will do a LS to see what
are the files listed over there so I can
see there are many files and folders.
So I will just try to navigate to one of the folder that
is you want.
After going into this uon folder I can see there is
a file glad you reached here. So I'm
just trying to read this file using the cat command.
So you can see after doing cat.
To read the file it is saying to go here slash root slash
Pro. So let me just navigate to this
directory using the CD command CD stands
for change directory.
So change directory to slash Roots slash Pro.
After going here, let's do a LS as
you can see there are three more files.
and folders, so let me just go to the
flag folder
After going inside, let me do a LS to list. What
is there inside as you can see there is a file called as
flag dot txt. So I'm just going to read this
file using the cat command.
And you can see here. You want Mr. Pro hacker, so
we have successfully completed.
Our SSH that how you can remote login into
any server and you can navigate inside
the server and read for files and
folders.
I hope you understood. Thank you.