Skip to content

fix(sync): improve SSH startup compatibility for RHEL-based image#96

Merged
zxh326 merged 1 commit intojuicedata:mainfrom
sw-cho:main
Jan 9, 2026
Merged

fix(sync): improve SSH startup compatibility for RHEL-based image#96
zxh326 merged 1 commit intojuicedata:mainfrom
sw-cho:main

Conversation

@sw-cho
Copy link
Contributor

@sw-cho sw-cho commented Jan 9, 2026

I am using a custom mount pod image based on RHEL 8.
However, the current script failed for the following reasons.
This PR fixes these issues while maintaining compatibility with Ubuntu and the current mount pod image. (juicedata/mount:ce-v1.3.0)

Changes:

  • Disable PAM (UsePAM no)
    • Latest rhel and ubuntu default to UsePAM yes, which can prevent ssh connections.
    • Explicitly disabled PAM to ensure connectivity.
  • Exec sshd using binary instead of service
    • service ssh start fails on RHEL because systemd is not available in the container
    • Changed to execute /usr/sbin/sshd directly.
  • Explicit generate host key
    • In my case, host keys were not generated automatically after installing openssh-server.
    • Added ssh-keygen -A to explicitly ensure that host keys exist at runtime

@zxh326 zxh326 enabled auto-merge (squash) January 9, 2026 06:44
@zxh326 zxh326 merged commit f0dc02b into juicedata:main Jan 9, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants