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

 

目录
相关文章
|
网络安全
kali 启用默认root,开启SSH服务,安装VNC,设置服务自启动
启用默认root,开启SSH服务,设置服务自启动,安装VNC
|
网络协议 Shell 网络安全
etcd3.4集群安装并设置开机自启动
--permanent永久生效,没有此参数重启后失效,防火墙打开2379和2380端口,同时刷新防火墙 firewall-cmd --zone=public --add-port=2379/tcp --permanentfirewall-cmd --zone=public --add-port=2.
4540 0
|
4月前
|
存储 运维 网络协议
Linux SSHD服务安装与维护详解(一)——SSHD安装、启动与密钥认证实现
Linux SSHD服务安装与维护详解(一)——SSHD安装、启动与密钥认证实现
155 2
|
Linux
Linux:systemctl、service、chkconfig
Linux:systemctl、service、chkconfig
120 0
|
网络协议 Linux 网络安全
Linux firewalld配置与systemctl开启启动配置(转载)
1、firewalld的基本使用 启动: systemctl start firewalld 查看状态: systemctl status firewalld 停止: systemctl disable firewalld 禁用: systemctl stop firewalld 2.systemctl是CentOS7的服务管理工具中主要的工具,它融合之前service和chkconfig的功能于一体。
1329 0