安裝ssh
使用命令“apt-get install openssh-server
”安裝ssh
使用命令“ps -e|grep ssh
”查看ssh是否啓動
如果沒有啓動,使用命令“service ssh start
”啓動ssh服務(最好重啓Ubuntu)
ssh設置Root遠程登錄
使用命令“gedit /etc/ssh/sshd_config
”打開修改文件,將第28行的內容註釋掉修改爲:
#PermitRootLogin prohibit-password
PermitRootLogin yes
修改完畢,保存退出,然後使用命令“service ssh restart
”重新啓動ssh服務
使用xshell遠程連接
使用命令“ifconfig
”查看ip地址信息
在windows中安裝Xshell,打開新建會話
使用root用戶名和密碼登錄即可