clion-remote
clion-remote copied to clipboard
SSH config makes no sense
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).