You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sed -i 's/PermitRootLogin without-password/PermitRootLogin yes/' /etc/ssh/sshd_config && \
The only place matching the pattern PermitRootLogin without-password in /etc/ssh/sshd_config is in a comment section, which does not affect the SSH daemon.
I guess the original intention is to modify the setting of PermitRootLogin to yes? In that case, the pattern to be searched should be PermitRootLogin[[:blank:]]+prohibit-password. At least this is the default setting in /etc/ssh/sshd_config in the xenial image.
Nevertheless, changing from prohibit-password to yes for root doesn't seem to make sense to me. root does not have a password so it can not log in with a password even if PasswordAuthentication is yes. In other words, no matter whether PermitRootLogin is prohibit-password or yes, root always has to log in with a key. I think.
The text was updated successfully, but these errors were encountered:
This line does nothing:
petibm-recipes/docker/Dockerfile-0.5.1-GPU-OpenMPI-xenial
Line 23 in 3987d84
The only place matching the pattern
PermitRootLogin without-password
in/etc/ssh/sshd_config
is in a comment section, which does not affect the SSH daemon.I guess the original intention is to modify the setting of
PermitRootLogin
toyes
? In that case, the pattern to be searched should bePermitRootLogin[[:blank:]]+prohibit-password
. At least this is the default setting in/etc/ssh/sshd_config
in thexenial
image.Nevertheless, changing from
prohibit-password
toyes
forroot
doesn't seem to make sense to me.root
does not have a password so it can not log in with a password even ifPasswordAuthentication
isyes
. In other words, no matter whetherPermitRootLogin
isprohibit-password
oryes
,root
always has to log in with a key. I think.The text was updated successfully, but these errors were encountered: