AWS中Centos创建后登录以及修改密码配置
2015-10-04 17:01
615 查看
1、需要用pem文件连接到centos系统中,
xshell 使用pem文件登录:http://note.youdao.com/share/?id=7d0edf8e0946024dd4f52779708e68aa&type=note
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
xshell 使用pem文件登录:http://note.youdao.com/share/?id=7d0edf8e0946024dd4f52779708e68aa&type=note
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
相关文章推荐
- linux sar
- linux c 获取硬盘序列号
- Linux中ifcfg-eth0配置参数说明
- linux 网卡配置 和切换
- Linux 常用命令记录
- linux nslookup
- LINUX关闭防火墙
- 静态库和动态库
- linux vim 笔记(部分取自vim编译器资料)
- 【转】每天一个linux命令(61):wget命令
- 【Linux驱动】I2C驱动编写要点
- linux2.4 启动代码head.S分析
- linux常用命令
- Linux Mint Qt5 开发环境搭建
- CentOS系统识别NTFS分区的移动硬盘
- linux个人学习笔记---linux文件类型
- windows-linux
- Linux配置环境变量后不能登录
- 使用脚本获得 消耗Linux操作系统内存的前10个操作系统进程
- Linux GCC常用命令