- Kali Linux Cookbook
- Willie L. Pritchett David De Smet
- 251字
- 2021-07-23 16:08:05
Starting network services
Kali Linux comes with several network services which may be useful in various situations and are disabled by default. In this recipe, we will cover the steps to set up and start each service using various methods.
Getting ready
The following requirement is needed in order to continue:
- A connection to the network with a valid IP address
How to do it...
Let's begin the process of starting our default service:
- Start the Apache server:
service apache2 start
We can verify the server is running by browsing to the localhost address.
- To start the Secure Shell (SSH) service, SSH keys need to be generated for the first time:
sshd-generate
- Start the Secure Shell server:
service ssh start
- To verify the server is up and listening, use the
netstat
command:netstat -tpan | grep 22
- Start the FTP server:
service pure-ftpd start
- To verify the FTP server, use the following command:
netstat -ant | grep 21
Note
You can also use the
ps-ef | grep 21
command. - To stop a service, just issue the following command:
service <servicename> stop
Where
<servicename>
stands for the network service we want to stop. For example:service apache2 stop
- To enable a service at boot time, use the following command:
update-rc.d –f <servicename> defaults
Where
<servicename>
stands for the network service we want at boot time. For example:update-rc.d –f ssh defaults
Note
You can also do this from the Services menu in Kali Linux. From the Start menu, go to Kali Linux | Services.
推薦閱讀
- 電氣自動(dòng)化專業(yè)英語(第3版)
- 基于C語言的程序設(shè)計(jì)
- 三菱FX3U/5U PLC從入門到精通
- Seven NoSQL Databases in a Week
- Mastercam 2017數(shù)控加工自動(dòng)編程經(jīng)典實(shí)例(第4版)
- Learn CloudFormation
- PVCBOT機(jī)器人控制技術(shù)入門
- Hadoop應(yīng)用開發(fā)基礎(chǔ)
- 筆記本電腦維修90個(gè)精選實(shí)例
- 計(jì)算機(jī)與信息技術(shù)基礎(chǔ)上機(jī)指導(dǎo)
- PLC與變頻技術(shù)應(yīng)用
- JRuby語言實(shí)戰(zhàn)技術(shù)
- 筆記本電腦維修之電路分析基礎(chǔ)
- Learn Microsoft Azure
- PowerPoint 2010幻燈片制作高手速成