Skip to content

SSH config makes no sense #8

@Wuestenschiff

Description

@Wuestenschiff

Why do you wan't to allow RootLogin, also why do we enforce a password when it is a weak as 'password'.

RUN ( \
    echo 'LogLevel DEBUG2'; \
    echo 'PermitRootLogin yes'; \
    echo 'PasswordAuthentication yes'; \
    echo 'Subsystem sftp /usr/lib/openssh/sftp-server'; \
  ) > /etc/ssh/sshd_config_test_clion \
  && mkdir /run/sshd

should be

RUN ( \
  echo 'LogLevel DEBUG2'; \
  echo 'PermitRootLogin no'; \
  echo 'PasswordAuthentication yes'; \
  echo 'PermitEmptyPasswords yes'; \
  echo 'Subsystem sftp /usr/lib/openssh/sftp-server'; \
) > /etc/ssh/sshd_config_test_clion \
&& mkdir /run/sshd

Then the && yes password | passwd user can be dropped.

This still does not work with clion becasue the GUI enforces a passsword (I think this is a bug as well).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions