取消ssh登陆 Access denied提示

1、现象

login as: root

Access denied

root@10.10.40.62′s password:
Last login: Fri Aug 24 21:19:57 2012 from 10.10.10.10
[root@node62 ~]#
2、解决

解决方法:

默认的情况下 /etc/ssh/sshd_config 是一个 全部注释得文件 去掉注释 PermitRootLogin??yes??就可以登陆了

如果不行,继续以下操作。

# vim /etc/ssh/sshd_config
注释掉
GSSAPIAuthentication yes
取消注释
UseDNS yes
# /etc/init.d/sshd restart
Stopping sshd: ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? [ ?OK ?]
Starting sshd: ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? [ ?OK ?]
如果登录慢

客户端:

vi /etc/ssh/ssh_conf?

找到?

GSSAPIAuthentication yes?

改为?

GSSAPIAuthentication no?

修改/etc/ssh/sshd_config内的 UseDns注释去掉并改为

UseDns no

如果没有就加上上面这句

Centos/DirectAdmin PHP Imap组件安装教程

IMAP是电子邮件客户端组件,

本文环境为Centos 64位 DirectAdmin

32 bit

yum install krb5-devel libc-client libc-client-devel -y
wget http://dave.t0xic.nl/tars/imapback-2004c1-x86.tar.gz
tar xzf imapback-2004c1-x86.tar.gz
cd imap-2004c1
./buildit
cd c-client
mkdir /usr/local/imap-2004c1/
mkdir /usr/local/imap-2004c1/lib
mkdir /usr/local/imap-2004c1/include
cp *.h /usr/local/imap-2004c1/include
cp *.c /usr/local/imap-2004c1/lib
cp c-client.a /usr/local/imap-2004c1/lib
ln -s /usr/local/imap-2004c1/c-client.a /usr/local/imap-2004c1/libc-client.a

64bit

yum install krb5-devel libc-client libc-client-devel -y
cd /usr/local/directadmin/custombuild
wget http://dave.t0xic.nl/tars/imapback-2004c1-x86_64.tar.gz
tar xzf imapback-2004c1-x86_64.tar.gz
cd imap-2004c1
./buildit
cd c-client
mkdir /usr/local/imap/
mkdir /usr/local/imap/lib
mkdir /usr/local/imap/include
cp *.h /usr/local/imap/include
cp *.c /usr/local/imap/lib
cp c-client.a /usr/local/imap/lib
ln -s /usr/local/imap/c-client.a /usr/local/imap/libc-client.a

然后添加编译php的参数 重新编译成一次 即可

--with-pic \
--with-imap=/usr/local/imap \
--with-imap-ssl=/usr/local/imap

最后测试
php -m | grep imap