How can i restore my /etc/passwd file? I have access to it, but it's currently empty and I added this to the file, but I can't even SSH to the machine, I'm getting a "connection refused".
root:x:0:0:root:/root:/bin/bash
mk:x:1000:1000:mk:/root:/bin/bash
Is it possible to recreate the passwd file? How should it be formatted, so that I can log in again?
Thanks!
Best regards
Best Answer
Lol on the stupidity tag. "Connection refused" usually means that sshd isn't running. Make sure the service is running. It may require the ssh user: