I am using Raspbian Stretch on my Pi 3. It has been working fine for last couple of months. However, recently I am experiencing a weird issue.
I cannot SSH to it. When I connect, it shows the login window, asks for user name (login as:) and as soon as I put the user name, the connection is terminated.
And, if I'm already connected via SSH, the commands fail to work. So far I saw cd working for me. other commands are failing. For example, ls gives an error as no command /bin/ls
Also, if I manage to open the Samba share before the Pi stops, I can continue using it. However, I cannot connect to the Samba share if I try after the Pi stops responding. The two LEDs keep glowing continuously.