Disable empty root login, root ssh login - #297
Open
dodoradio wants to merge 1 commit into
Open
Conversation
Yocto will set an invalid root password, disallowing any password login. Root login will also be disabled in sshd_config For usecases where it's needed, root empty password can be re-enabled by running: sudo passwd -d root root ssh login can be reenabled with: sudo sed -i 's/^[#[:space:]]*PermitRootLogin.*/PermitRootLogin yes/' /etc/ssh/sshd_config
Member
|
Have you tested this with Also, what's your reason for this change? |
Member
|
Would |
Contributor
Author
|
I have tested this with adb shell. adb shell continues to give root access.
I'm proposing this as part of an effort to improve security just the tiniest bit, so that we can then add a WiFi UI. The previous step was adding sudo, the next step is to figure out some kind of UI for enabling/disabling remote login, through mechanisms such as disabling the SSH daemon, or adding a UI for setting a user password. |
Contributor
Author
no. sudo was added yesterday as a safer alternative |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Yocto will set an invalid root password, disallowing any password login. Root login will also be disabled in sshd_config
For usecases where it's needed, root empty password can be re-enabled by running:
sudo passwd -d root
root ssh login can be reenabled with:
sudo sed -i 's/^[#[:space:]]PermitRootLogin./PermitRootLogin yes/' /etc/ssh/sshd_config