minoca / os

Minoca operating system
Other
2.71k stars 232 forks source link

Consider setting a default root password in install-minimal #85

Closed vascocosta closed 7 years ago

vascocosta commented 7 years ago

Since "install-minimal" goes as far as installing dropbear, presumably to allow remote access out of the box, should we consider setting a default root password, so that we can ssh into a headless machine right away?

This thought crossed my mind as I had to plug a keyboard into an RPI3 which has no input/output devices connected to it, just to blindly set the password for root and subsequently be able to access it remotely using ssh.

melezhik commented 7 years ago

Hi @vascocosta , +1 for this , probably it is even better to set empty root password ? Passwd -d.

vascocosta commented 7 years ago

Or maybe for security reasons ask the user to interactively provide one or generate a random string?

evangreen commented 7 years ago

The root password is already empty, it's just most SSH servers won't allow you to log in as root if the root password is empty. I don't really love default passwords, as they provide the illusion of security and never end up getting changed. The install-minimal script tries to help set up a public/private keypair for you to use (and you can always add your own manually). Is there a reason that login by keypair doesn't work for you guys?

vascocosta commented 7 years ago

Oh, I totally missed the script was creating a keypair. It works for me.

melezhik commented 7 years ago

Hi @evangreen keypair is fine.