Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3270532
  • 博文数量: 815
  • 博客积分: 12898
  • 博客等级: 上将
  • 技术积分: 7883
  • 用 户 组: 普通用户
  • 注册时间: 2006-12-25 09:57
文章分类

全部博文(815)

文章存档

2014年(1)

2011年(46)

2010年(192)

2009年(121)

2008年(70)

2007年(385)

分类: LINUX

2010-04-28 03:39:09

OpenSSH rpm Download:


openssh-server-5.2p1-1.x86_64.rpm
openssh-clients-5.2p1-1.x86_64.rpm     
openssh-5.2p1-1.x86_64.rpm

# rpm -Uvh openssh-*

问题:

[root@atyu30 ~]# /etc/init.d/sshd restart
Stopping sshd: [ OK ]
Starting sshd:WARNING: initlog is deprecated and will be removed in a future release
[ OK ]
[root@atyu30 ~]# netstat -ant
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:965 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:3312 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 :::80  :::* LISTEN
tcp 0 0 :::22  :::* LISTEN
tcp 0 0 ::ffff:172.16.25.129:22  ::ffff:172.16.25.1:43333 ESTABLISHED

处理办法:

Configuration File: /etc/init.d/sshd
start()
{
# Create keys if necessary
do_rsa1_keygen
do_rsa_keygen
do_dsa_keygen

echo -n $"Starting $prog:"
#注释如下行
#initlog -c "$SSHD $OPTIONS" && success || failure
#添加如下行
$SSHD $OPTIONS && success || failure
RETVAL=$?
[ "$RETVAL" = 0 ] && touch /var/lock/subsys/sshd
echo
}



阅读(964) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~