OpenStack开启sshd

简介: 修改配置sshd的文件 1.      修改sshd配置文件 /etc/ssh/sshd_config 2.      将#PasswordAuthentication no的注释去掉,并将no改为yes 3.

修改配置sshd的文件

1.      修改sshd配置文件 /etc/ssh/sshd_config

2.      将#PasswordAuthentication no的注释去掉,并将no改为yes

3.      将#PermitRootLogin yes的注释掉

4.      重新启动SSH服务/etc/init.d/sshd restart

5.      查看SSH状态 /etc/init.d/sshd status

关闭SuSEfirewall2防火墙rcSuSEfirewall2 stop 或是放行22port

 

目录
相关文章
|
4月前
|
关系型数据库 MySQL Linux
Linux服务管理与chkconfig命令
Linux服务管理与chkconfig命令
52 0
|
Linux
Linux:systemctl、service、chkconfig
Linux:systemctl、service、chkconfig
121 0
|
网络协议 Linux 网络安全
Centos 7防火墙firewalld开放80端口
开启80端口 1、firewall-cmd --zone=public --add-port=80/tcp --permanent  出现success表明添加成功  命令含义: --zone #作用域 --add-port=80/tcp  #添加端口,格...
8888 0
|
安全 网络协议 Linux
CentOS7.X通过firewalld管理端口
CentOS7.X通过firewalld管理端口
1609 0
|
网络协议 Linux 网络安全
Linux firewalld配置与systemctl开启启动配置(转载)
1、firewalld的基本使用 启动: systemctl start firewalld 查看状态: systemctl status firewalld 停止: systemctl disable firewalld 禁用: systemctl stop firewalld 2.systemctl是CentOS7的服务管理工具中主要的工具,它融合之前service和chkconfig的功能于一体。
1334 0