kali linux 开启配置ssh服务
生活随笔
收集整理的這篇文章主要介紹了
kali linux 开启配置ssh服务
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
?
1.? ? 一、配置SSH參數(shù)
修改sshd_config文件,命令為: vi /etc/ssh/sshd_config 將#PasswordAuthentication no的注釋去掉,并且將NO修改為YES //kali中默認(rèn)是yes 2.? 將PermitRootLogin without-password修改為 PermitRootLogin yes 3.? 然后,保存,退出vim。 4. ? 二、啟動SSH服務(wù) 命令為: /etc/init.d/ssh start 或者 service ssh start 查看SSH服務(wù)狀態(tài)是否正常運(yùn)行,命令為: /etc/init.d/ssh status 或者 service ssh status 5. ? 三、使用SSH登錄工具(Putty\SecureCRT\XShell)登錄kali 6. ? ? 輸入用戶名、密碼后,如果使用SSH連接工具還是連不上kali 2.0,如下圖所示: 7. ? ? 那么要先生成兩個密鑰: #ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key #ssh-keygen -t dsa -f /etc/ssh/ssh_host_rsa_key 執(zhí)行命令后都會讓輸入密碼,直接敲回車設(shè)置為空即可 8. ? ? 再使用SSH連接工具重新連接kali,成功搞定! 9. ? ? 四、設(shè)置系統(tǒng)自動啟動SSH服務(wù) 方法一: sysv-rc-conf sysv-rc-conf --list | grep ssh sysv-rc-conf ssh on? //系統(tǒng)自動啟動SSH服務(wù) sysv-rc-conf ssh off? // 關(guān)閉系統(tǒng)自動啟動SSH服務(wù) 方法二: update-rc.d ssh enable? //系統(tǒng)自動啟動SSH服務(wù) update-rc.d ssh disabled // 關(guān)閉系統(tǒng)自動啟動SSH服務(wù) END轉(zhuǎn)載于:https://www.cnblogs.com/oneWhite/p/11169704.html
創(chuàng)作挑戰(zhàn)賽新人創(chuàng)作獎勵來咯,堅持創(chuàng)作打卡瓜分現(xiàn)金大獎總結(jié)
以上是生活随笔為你收集整理的kali linux 开启配置ssh服务的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: OP AMP - 反馈理论在运放中的应用
- 下一篇: 启动LINUX下的TFTP服务器