fedora23 安装openssh-server

先确认是否已安装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

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值