ssh鏈接可以遠程管理linux設備,默認端口是22,安裝好系統默認是不開啓的,需要修改配置文件
1.修改/etc/ssh/sshd_config配置文件
vim /etc/ssh/sshd_config
1.1 找到#PasswordAuthentication yes 把#的註釋去掉
PasswordAuthentication yes
1.2 將PermitRootLogin without-password修改爲:
PermitRootLogin yes
2. 然後啓動ssh服務,這時候先不要鏈接,因爲鏈接不上,
命令是:/etc/init.d/ssh start
3.然後設置開機自動啓動
命令是:update-rc.d ssh enable
4.這次重啓系統並且使用xshell在鏈接
reboot