New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Install ssh permitroot #22076
Install ssh permitroot #22076
Conversation
@bachp, thanks for your PR! By analyzing the history of the files in this pull request, we identified @edolstra, @thatdocslady and @nbp to be potential reviewers. |
services.openssh = { | ||
enable = true; | ||
# Allow password login to the installation, if the user sets a password via "passwd" | ||
# It is save as root doesn't have a password by default and SSH is disabled by default |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
save
-> safe
.
The danger here is that if we ever add a user account with a default password to the the installation media (e.g. |
Isn't that already the case? Password logins are already enabled, just not for root. |
Good point. |
@edolstra even if a user is added SSH has still to be manually started |
Allow password login to the installation this allows doing remote installation via SSH. All that need to be done on the local machine is: 1. Boot from the installation media 2. Set a password with passwd 3. Enable SSH with systemctl start sshd It is safe as root doesn't have a password by default and SSH is disabled by default. Fixes NixOS#20718
64d8d7b
to
e5df372
Compare
@edolstra Typo fixed |
Motivation for this change
To make it easier to do an installation from a remote machine root login should be permitted on an installation CD.
For a discussion see: #20718
Things done
./result/iso/
)