用ssh key登陆不上某台机A的某个账号xy1,查看A的/var/log/messages,看到有这么句:User xy1 not allowed because account is locked原因为该账号没设密码,被锁住了,用以下命令解决:passwd -u xy1usermod -p -u xy1