最近使用虛擬機做一些項目,用到了kali,但想試一下使用xshell
下載安裝后連接xshell出來了問題,一直顯示ssh服務器拒絕了密碼,請重新連接
總結一下方法
1.需要在 Kali 中開啟 SSH 服務
service sshd start
2.如果還不行需要修改ssh配置文件
打開終端,輸入
vim /etc/ssh/sshd_config
然后按鍵盤 i 鍵,修改文件
#PasswordAuthentication yes
改為
PasswordAuthentication yes
PermitRootLogin prohibit-password
改為
PermitRootLogin yes
2.然后按esc鍵退出vim,然后輸入 :wq 保存退出
3.重新啟動ssh
service sshd restart