AWS中Centos创建后登录以及修改密码配置
AWS Centos    2017-07-19 22:35:22    989   
lightingfire   AWS Centos
1、需要用pem文件连接到centos系统中,
    xshell 使用pem文件登录:http://blog.liuyingguang.cn/blog/post/lightingfire/pem%E6%96%B9%E5%BC%8F%E7%99%BB%E5%BD%95%E7%9A%84CentOS%E7%B3%BB%E7%BB%9F%E4%BF%AE%E6%94%B9%E4%B8%BA%E5%AF%86%E7%A0%81%E7%99%BB%E5%BD%95%E6%96%B9%E5%BC%8F

2、修改root密码
    sudo passwd root

然后输入两次密码


3、修改centos登录方式为密码登录
    打开配置文件 /etc/ssh/sshd_config (ubuntu 为/etc/ssh/sshd-config),设置如下几个参数
PermitRootLogin yes
PubkeyAuthentication no (也可用#号注释)
PasswordAuthentication yes
4、重启sshd服务
    /etc/init.d/sshd restart



 

by 刘迎光@萤火虫工作室 
OpenBI交流群:495266201 
MicroService 微服务交流群:217722918 
mail: liuyg#liuyingguang.cn 
博主首页(==防止爬虫==):http://blog.liuyingguang.cn

Pre: 基于MariaDB Galera Cluster的数据库HA方案

Next: CentOS 6.5 安装freeswitch


Table of content