fedora23 安装openssh-server
2016-05-20 11:07
344 查看
先确认是否已安装ssh服务:
[root@localhost ~]# rpm -qa | grep openssh-server
openssh-server-5.3p1-19.fc12.i686 (这行表示已安装)
若未安装ssh服务,可输入:
#yum install openssh-server
进行安装
2、修改配置文件
#vi /etc/ssh/sshd_config
Port 22 监听的端口号,默认是22,可以自定义。
Protocol 2 支持的协议,默认就好,不用修改
PermitRootLogin yes 是否允许root直接登录,最好设置为no
修改完配置后,重启SSH服务:
To start the sshd daemon, type the following at a shell prompt:
systemctl start sshd.service
To stop the running sshd daemon, use the following command:
systemctl stop sshd.service
If you want the daemon to start automatically at the boot time, type:
参考链接为:
https://docs.fedoraproject.org/en-US/Fedora/16/html/System_Administrators_Guide/s2-ssh-configuration-sshd.html
[root@localhost ~]# rpm -qa | grep openssh-server
openssh-server-5.3p1-19.fc12.i686 (这行表示已安装)
若未安装ssh服务,可输入:
#yum install openssh-server
进行安装
2、修改配置文件
#vi /etc/ssh/sshd_config
Port 22 监听的端口号,默认是22,可以自定义。
Protocol 2 支持的协议,默认就好,不用修改
PermitRootLogin yes 是否允许root直接登录,最好设置为no
MMaxAuthTries 6 最大登录数,默认是6,建议设置为3,防止别人密码穷举。
修改完配置后,重启SSH服务:
To start the sshd daemon, type the following at a shell prompt:
systemctl start sshd.service
To stop the running sshd daemon, use the following command:
systemctl stop sshd.service
If you want the daemon to start automatically at the boot time, type:
参考链接为:
https://docs.fedoraproject.org/en-US/Fedora/16/html/System_Administrators_Guide/s2-ssh-configuration-sshd.html
相关文章推荐
- js中取得变量绝对值的方法
- HTML 注意规范
- jQuery Select2使用js赋值
- Extjs4 grid 行添加按钮(button)的方法
- Angularjs 1.3在页面中输出带Html标记的文本
- 用JQuery Validate框架,在IE8下验证报错问题解决
- JS数组操作(数组增加、删除、翻转、转字符串、取索引、截取(切片)slice、剪接splice、数组合并)
- 【React】《Why did we build React?》 我们为什么要创建React-译文
- 学习web前端开发需要怎么学?
- jQuery UI之对话框(dialog)的使用
- json 模块
- JavaScript 基础(六) 数组方法 闭包
- json 模块
- json 模块
- javascript 特效实现(3)—— 鼠标滑过显示二级菜单效果
- AngularJS中的指令全面解析(必看)
- java入门、java学习必读,WEB前端学习路线
- Effective cpp 读书笔记6
- JSON的输出方式
- JavaScript-学习一_var