歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux綜合 >> 學習Linux >> 亞馬遜AWS CentOS7改為用戶名密碼登錄

亞馬遜AWS CentOS7改為用戶名密碼登錄

日期:2017/3/3 17:48:41   编辑:學習Linux

亞馬遜AWS CentOS7改為用戶名密碼登錄

亞馬遜AWS CentOS7改為用戶名密碼登錄


1.進入AWS系統


系統為:centos 7
fox.風

2.設置ROOT密碼

sudo passwd root

3.修改配置文件

sudo vim /etc/ssh/sshd_config

相應的參數修改為

PermitRootLogin yesPasswordAuthentication yes

4.應用使之生效

4.1重啟服務器 即可

sudo reboot

4.2重啟服務

sudo systemctl restart sshd.service

http://xxxxxx/Linuxjc/1184664.html TechArticle

Copyright © Linux教程網 All Rights Reserved