1.如果是root登陆的,需要开启 PermitRootLogin yes 经过尝试发现:如果不将StrictModes 设置为no ,登陆时总是提示被拒绝 其次就是 PermitEmptyPasswords no