Fedora 15 SSH安装与配置

su

yum install openssh-server

1>查看运行状态
To check if it is installed and running use the following command: 
/sbin/service sshd status 

2>启动ssh server
If the service is installed, but not running, it can be started either from the command-line: 
/sbin/service sshd start

3>配置ssh
打开/etc/ssh/ssh_config ,去掉其中:
Port 22
Protocol 2,1
前面的#号,然后重新启动:service sshd restart

4>配置开机自动启动SSH服务:
vi /etc/rc.local
加入
/etc/init.d/sshd start 
听说除了tomcat,其他的只要把启动参数写入rc.local就好

5>最后需要设置一下防火墙,允许ssh端口被访问:
iptables -I INPUT -p tcp -j ACCEPT
然后就可以通过ssh工具连接了
或者在图形界面下对防火进行配置,启动防火配置:
/usr/bin/system-config-firewall

6>其它
另外fedora与debain和unbutu一样,也可以通过下面命令进行启动与关闭:
/etc/init.d/sshd stop
/etc/init.d/sshd start
/etc/init.d/sshd restart


/etc/init.d/iptables stop
/etc/init.d/iptables start
chkconfig sshd on


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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值