cat /var/log/messages |grep ssh
查看日志
chown -R root.root /var/empty/sshd
chmod 744 /var/empty/sshd
///etc目录下面
drwx--xr-x 2 root admin 4096 10-13 12:58 ssh
//etc/ssh目录下面
# ll
总计 204
-r-------- 1 root admin 132839 2010-03-31 moduli
-r-------- 1 root admin 1827 2010-03-31 ssh_config
-r-------- 1 root admin 3323 2010-03-31 sshd_config
-r-------- 1 root admin 672 10-13 12:58 ssh_host_dsa_key
-r-------- 1 root admin 590 10-13 12:58 ssh_host_dsa_key.pub
-r-------- 1 root admin 963 10-13 12:58 ssh_host_key
-r-------- 1 root admin 627 10-13 12:58 ssh_host_key.pub
-r-------- 1 root admin 1675 10-13 12:58 ssh_host_rsa_key
-r-------- 1 root admin 382 10-13 12:58 ssh_host_rsa_key.pub
查看日志
chown -R root.root /var/empty/sshd
chmod 744 /var/empty/sshd
///etc目录下面
drwx--xr-x 2 root admin 4096 10-13 12:58 ssh
//etc/ssh目录下面
# ll
总计 204
-r-------- 1 root admin 132839 2010-03-31 moduli
-r-------- 1 root admin 1827 2010-03-31 ssh_config
-r-------- 1 root admin 3323 2010-03-31 sshd_config
-r-------- 1 root admin 672 10-13 12:58 ssh_host_dsa_key
-r-------- 1 root admin 590 10-13 12:58 ssh_host_dsa_key.pub
-r-------- 1 root admin 963 10-13 12:58 ssh_host_key
-r-------- 1 root admin 627 10-13 12:58 ssh_host_key.pub
-r-------- 1 root admin 1675 10-13 12:58 ssh_host_rsa_key
-r-------- 1 root admin 382 10-13 12:58 ssh_host_rsa_key.pub