[BUG] SSH credentials expired indefinitely
Closed this issue · 2 comments
karma0 commented
Description
The SSH user neon
appears to indefinitely have an expired password using the latest image available here: https://neon.ai/NeonAIforMycroftMarkII
Steps to Reproduce
- Login using
ssh
- If it's the first time connecting, accept the signature
- Reset password
- Ad infinitum
Relevant Code
❯ ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no neon@172.16.10.179
neon@172.16.10.179's password:
You are required to change your password immediately (administrator enforced).
You are required to change your password immediately (administrator enforced).
Linux neon 5.15.72-v8+ #1 SMP PREEMPT Thu Oct 6 20:29:02 EDT 2022 aarch64
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
WARNING: Your password has expired.
You must change your password now and login again!
Changing password for neon.
Current password:
New password:
Retype new password:
passwd: password updated successfully
Shared connection to 172.16.10.179 closed.
❯ ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no neon@172.16.10.179
Last login: Wed Mar 8 11:35:21 2023 from 172.16.10.139
WARNING: Your password has expired.
You must change your password now and login again!
Changing password for neon.
Current password:
New password:
Retype new password:
passwd: password updated successfully
Shared connection to 172.16.10.179 closed.
❯ ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no neon@172.16.10.179
Last login: Wed Mar 8 13:28:21 2023 from 172.16.10.139
WARNING: Your password has expired.
You must change your password now and login again!
Changing password for neon.
Current password:
New password:
Retype new password:
passwd: password updated successfully
Shared connection to 172.16.10.179 closed.
Other Notes
This cycle will continue indefinitely while attempting to login.
NeonDaniel commented
Did you try connecting without the extra options? i.e. ssh neon@172.16.10.179
Also, can you try adding -v
to the ssh command and share the output?
NeonDaniel commented
SSH key handling has since been updated in neon-debos and this issue has not been reproduced