新安裝的ubuntu系統只能使用普通用戶登錄,要想使用root登錄需要修改ssh的權限配置
配置文件: /etc/ssh/sshd_config
在文件最末尾添加:
UseDNS no
AddressFamily inet
SyslogFacility AUTHPRIV
PermitRootLogin yes
PasswordAuthentication yes
重啓ssh服務
systemctl restart ssh
新安裝的ubuntu系統只能使用普通用戶登錄,要想使用root登錄需要修改ssh的權限配置
配置文件: /etc/ssh/sshd_config
在文件最末尾添加:
UseDNS no
AddressFamily inet
SyslogFacility AUTHPRIV
PermitRootLogin yes
PasswordAuthentication yes
重啓ssh服務
systemctl restart ssh