谷歌云推薦以下工具連接:FinalShell SSH工具
官方下載地址:點擊下載
設置root密碼
1.先選擇從瀏覽器打開ssh連接服務器
2.切換到root賬號,輸入代碼
sudo -i
3.設置root密碼
passwd
然后會要求輸入新密碼,然后再重復一次密碼,輸入密碼的時候不會顯示出來,所以直接輸入密碼,然后回車,再然后重復輸入密碼回車

開啟SSH權限
CentOS和Debian通用,輸入以下兩條命令
sed -i 's/PermitRootLogin no/PermitRootLogin yes/g' /etc/ssh/sshd_config
sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/g' /etc/ssh/sshd_config
Ubuntu系統,輸入以下兩條命令
sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/g' /etc/ssh/sshd_config
sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/g' /etc/ssh/sshd_config
重啟服務器
reboot





















