- 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.
推薦閱讀
- 樂(lè)高機(jī)器人:WeDo編程與搭建指南
- 電力自動(dòng)化實(shí)用技術(shù)問(wèn)答
- Oracle SOA Governance 11g Implementation
- 工業(yè)機(jī)器人產(chǎn)品應(yīng)用實(shí)戰(zhàn)
- Dreamweaver CS3網(wǎng)頁(yè)制作融會(huì)貫通
- 返璞歸真:UNIX技術(shù)內(nèi)幕
- 21天學(xué)通ASP.NET
- OpenStack Cloud Computing Cookbook(Second Edition)
- 四向穿梭式自動(dòng)化密集倉(cāng)儲(chǔ)系統(tǒng)的設(shè)計(jì)與控制
- Implementing Oracle API Platform Cloud Service
- 精通數(shù)據(jù)科學(xué)算法
- 菜鳥(niǎo)起飛系統(tǒng)安裝與重裝
- Deep Reinforcement Learning Hands-On
- PLC與變頻技術(shù)應(yīng)用
- 智能鼠原理與制作(進(jìn)階篇)