centos 安装ssh
yum install ssh
启动SSH
service sshd start
开机运行
chkconfig sshd on
#ServerKeyBits 1024-->ServerKeyBits 1024 加密强度
#PermitRootLogin yes -->PermitRootLogin no 不允许root登陆
#PasswordAuthentication yes -->PasswordAuthentication yes 不允许密码方式的登录
#PermitEmptyPasswords no -->PermitEmptyPasswords no 不允许空密码登陆