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
Since that is commented out, I suspect it is using the default value. The defaults according to man page says:
PermitRootLogin
Specifies whether root can log in using ssh(1). The argument must be yes, prohibit-password, forced-commands-only, or no. The default is prohibit-password.
If this option is set to prohibit-password (or its deprecated alias, without-password), password and keyboard-interactive authentication are disabled for root.
If this option is set to forced-commands-only, root login with public key authentication will be allowed, but only if the command option has been specified (which may be useful for taking remote backups even if root login is normally not allowed). All other authentication methods are disabled for root.
If this option is set to no, root is not allowed to log in.
I would inject an SSH key for the root user during build time and try logging in with the SSH key.
Container file as below
build the image
start a guest image and try to login
ssh -p 2222 root@localhost #failed to using root/redhat to login.
podman info output as below
The text was updated successfully, but these errors were encountered: