ssh จะไม่ให้ฉันเข้าสู่ระบบเพราะบัญชีถูกล็อค ฉันต้องการปลดล็อกผู้ใช้บนเซิร์ฟเวอร์ของฉันสำหรับการอนุญาตด้วยรหัสสาธารณะผ่าน ssh แต่ไม่เปิดใช้งานการเข้าสู่ระบบด้วยรหัสผ่าน
ฉันได้พยายาม:
# passwd -u username
passwd: unlocking the password would result in a passwordless account.
You should set a password with usermod -p to unlock the password of this account.
รายการบันทึกการตรวจสอบ:
Mar 28 00:00:00 vm11111 sshd[11111]: User username not allowed because account is locked
Mar 28 00:00:00 vm11111 sshd[11111]: input_userauth_request: invalid user username [preauth]
passwd -u
เป็นความคิดที่ไม่ดี ดูคำตอบโดย Giles bellow