1.首先安裝VM virtualBox軟件,
2.在各種網站上找到你需要的系統鏡像
這裏我推薦幾個 http://www.newxitong.com/
https://msdn.itellyou.cn/
https://ubuntu.com/download等等。。。。
3.用vm安裝系統鏡像,這個忽略,網上教程很多,自行百度吧。。。
4.進入到系統,我這裏以安裝的kali linux爲例 ,
1.sudo apt-get update
sudo apt-get install openssh-server //安裝ssh服務
vi /etc/ssh/sshd_config //修改配置文件
將#PasswordAuthentication no的註釋去掉,並且將no修改爲yes
PerimitEmptyPasswords yes //這裏是允許密碼爲空 (可以不修改)
將#PermitRootLogin prohibit-password的註釋去掉 ,prohibit-password 改爲yes
/usr/sbin/sshd -T //查看配置是否錯誤
2.重啓服務
service ssh restart 或者 start
如果忘記了root密碼 sudo passwd root//重新設置下就可以了
設置ssh服務爲自啓動
sudo systemctl enable ssh
就可以看到成功連接了。。。。。
第二節 :
怎麼把VM virtualBox軟件在後臺運行吶? 其實很簡單的 ,只需要…
進入到安裝目錄,cmd
VBoxManage startvm kali --type headless(kali 是系統名)