官术网_书友最值得收藏!

Command and control server SSH setup

Setup on the command and control host for the SSH is not a complicated process as well and is very similar to our on-premises box. The only real difference is the fact that the Kali image for the Raspberry Pi has some different defaults actions/settings compared to the default Kali image:

  1. Similar to the Raspberry Pi setup, we need to copy old keys and create new ones. Unlike the Raspberry Pi, the keys are not shared and should already be unique; however, I like to recreate them just in case (force of habit and a best practice for security):
  1. The default image of Kali Linux does not allow root login by default. You need to navigate to the /etc/ssh/ directory and edit the sshd_config file with your editor of choice. Find the line that says PermitRootLogin and change the response from no to yes. Save the file:
  1. Next, we will set SSH to start up on boot. It will not perform this by default. To accomplish this, we will run the following command:
update-rc.d -f ssh enable 2 3 4 5
  1. Restart the SSH service and try a test SSH session to verify that everything is working correctly:
主站蜘蛛池模板: 石嘴山市| 丹江口市| 阿瓦提县| 崇礼县| 米林县| 唐山市| 蒲江县| 龙游县| 丁青县| 宁晋县| 容城县| 屏边| 松桃| 怀宁县| 平安县| 克什克腾旗| 莱西市| 酉阳| 岫岩| 正安县| 砚山县| 罗山县| 胶南市| 亳州市| 仪陇县| 拉萨市| 雷波县| 蓝山县| 永丰县| 双牌县| 新建县| 通州市| 防城港市| 淮安市| 刚察县| 垦利县| 昌黎县| 金乡县| 水城县| 永登县| 娱乐|