主题: Install OpenSSH 5.2 on RHEL 5.2
OpenSSH rpm Download:
http://code.google.com/p/atyu30/
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
}