編輯配置文件
vim /etc/ssh/sshd_config
修改對應的參數如下
#PermitRootLogin prohibit-password
PermitRootLogin yes
#PasswordAuthentication yes
PasswordAuthentication yes
啓動ssh服務
service ssh start
重啓ssh服務
service ssh restart
查看ssh 服務狀態
service ssh status