kali開啓ssh22端口服務

kali開啓ssh22端口服務

前言

博客書

版本說明

linux.kali=kali-linux-2020.1a-installer-amd64.iso

相關鏈接:

  • Kali 官網:https://www.kali.org/
  • Kali 下載地址:https://www.kali.org/downloads/

kali開啓ssh22端口服務

編輯 /etc/ssh/sshd_config 配置文件

vim /etc/ssh/sshd_config
# 找到 #PasswordAuthentication yes  把#的註釋去掉
PasswordAuthentication yes
# 將 #PermitRootLogin prohibit-password 修改爲:PermitRootLogin yes
PermitRootLogin yes

重啓 SSH 服務

/etc/init.d/ssh start

設置開機自啓

update-rc.d ssh enable

問題一

問題詳情:

failed to start ssd.service: unit sshd.service not found

解決方案

# 安裝 openssh-server
sudo apt-get install openssh-server
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章