/etc/ssh/sshd_config中
1、PermitRootLogin由no改爲yes
2、AllowUsers root
最後 service ssh restart
/etc/ssh/sshd_config中
1、PermitRootLogin由no改爲yes
2、AllowUsers root
最後 service ssh restart
1、hostnamectl set-hostname xxx 2、vi /etc/hosts 將所有當前主機名替換成要替換的主機名
1、hostnamectl set-hostname xxx 2、vi /etc/hosts 將所有當前主機名替換成要替換的主機名