ubuntu允許root登錄

新安裝的ubuntu系統只能使用普通用戶登錄,要想使用root登錄需要修改ssh的權限配置

配置文件: /etc/ssh/sshd_config

在文件最末尾添加:

UseDNS no
AddressFamily inet
SyslogFacility AUTHPRIV
PermitRootLogin yes
PasswordAuthentication yes

重啓ssh服務

  systemctl restart ssh
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章