DEV Community

Discussion on: This is how I turned my old laptop into a server.

 
cristaldo profile image
Rafael Cristaldo

We just need to understand if you forgot your root password OR you only don't have permission to login via ssh.
If the problem is only when trying to login via ssh, it's easy to solve from sshd config file.
If you forgot the root password, you have to broke it by booting from grub with edit option (E) in the kernel line writing in the end of the line init=/bin/bash and doing chroot on root partition to be able to change your root password.
There are many posts on internet showing how to proceed with this.