During the section we will go through some services that is very important during penetration testing
so we'll see how to run those services and manage them from Kelly leanings.
The first service seven that I'm gonna start with is the SS etch or the secure shell.
This service will allow to connect to the Kelly Linux machine remotely through Port 22.
So it's a service that allow remote connection similar to the telnet and the remote desktop in Windows.
So when you allows that in Calen and ICS you'll be able to accept connection on Port 22.
But the difference between the telnet and SSA edge set telnet is something cryptic SSL is secure it's
encrypted.
So how can I run the service.
Because by default is not running just by typing service
service.
As each start
and since I didn't get any errors that means the SSA each service started.
How can I check.
Actually we have a common.
Here is called Net state and net State will show all the servers running on this machine and on which
port is running and everything except the list is too big so insert of searching I can use net state
minus E and GP and then we can put the sign and the sign actually is quite important to Linux you can
use that frequently.
This is called piping I mean whatever output you are getting from that state.
Could you please redirect them to another common which is grep grep it's a search in common Linux so
I'm telling a net state and the output I want you to search for this word is as HD and what will happen
is instead of showing also comment he will search for this war because grep is a search and comment
in Linux for this world inside the output and he will get me on only the results that has SSA HD and
as you can see it showing me that support now is open on your machine except he's listening no one is
connected it's.
So I open a port twenty two for an SSD each service and support is opening but no one is connected to
it.
So this is how we can run the service.
How can I stop it.
Use the logic in Linux I mean how did I start in the first place.
I use as a service a each start.
If so definitely to stop the service would be service as a stop.
And how can I verify.
Same comment.
So now as you can see the service is not running anymore so as a search it's a remote connection service
it allowed to accept remote connection on the scanning machine but remote encrypted connection on Port
22 and this is how to start it and stop it.