Skip to content

Commit

Permalink
ssh: enable empty password login for all users
Browse files Browse the repository at this point in the history
Disabling password login for all users is unnecessary, as the virtme-ng
instance is intended solely for testing purposes.

In fact, enabling empty password for all users can be quite convenient
and does not pose a security risk, since all filesystem access is
ultimately handled by the host user (due to virtiofsd running as the
host user).

In particular, enabling empty password login eliminates the need for
managing ssh authorized keys, simplifying the configuration further.

Signed-off-by: Andrea Righi <arighi@nvidia.com>
  • Loading branch information
arighi committed Dec 31, 2024
1 parent 9b1e02a commit 9e674cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ fn generate_shadow() -> io::Result<()> {

for line in reader.lines() {
if let Some((username, _)) = line?.split_once(':') {
writeln!(writer, "{}:!:::::::", username)?;
writeln!(writer, "{}::::::::", username)?;
}
}
utils::do_mount(
Expand Down

0 comments on commit 9e674cd

Please sign in to comment.