pem方式登录的CentOS系统修改为密码登录方式
2015-12-03 12:01
585 查看
1、需要用pem文件连接到centos系统中,
xshell 使用pem文件登录:http://blog.csdn.net/gsying1474/article/details/50158817
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://blog.csdn.net/gsying1474/article/details/50158817
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的vim按了ctrl+s之后假死的解决办法
- Linux原始套接字----ping命令的实现
- Linux性能指标及分析工具
- Linux系统下修改IP地址、网关、DNS的基本方法
- CentOS 6.4安装lnmp环境
- CentOS 6 lnmp环境脚本
- Linux系统笔记
- svn在linux下的使用(svn命令)
- linux 运行级别
- Linux内核驱动之read和write
- 安装RedHat Linux引导盘安装服务器提示GPT分区无法继续安装的解决方法
- linux下安装vlc的注意事项
- Python在Linux | Windows中输出带颜色的文字的方法
- linux 线程的缺点和线程池的必要性
- 在Debian/Ubuntu上安装ssh服务
- linux mysql 操作命令
- linux应用编程笔记(14)共享内存编程
- Linux系统下wget命令的使用教程
- Centos 7 yum 安装php
- centos\ oralce linux 安装 epel 源