clion-remote icon indicating copy to clipboard operation
clion-remote copied to clipboard

SSH config makes no sense

Open Wuestenschiff opened this issue 3 years ago • 0 comments

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).

Wuestenschiff avatar Nov 30 '21 15:11 Wuestenschiff