Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(remote-dev): unlock ssh user #66

Merged
merged 1 commit into from
Feb 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion modules/org.eclipse.jkube.remote-dev/configure
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ echo "StrictModes no" >> $SSHD_CONFIG

echo "Adding base image user (1000)"
SSH_CONFIG_DIR=/opt/ssh-config
adduser --disabled-password --uid 1000 "1000"
adduser --disabled-password --gecos "" --uid 1000 "1000"
usermod -p '*' 1000 # unlock user https://unix.stackexchange.com/questions/193066/how-to-unlock-account-for-public-key-ssh-authorization-but-not-for-password-aut
addgroup "1000" "root"
mkdir -p $SSH_CONFIG_DIR
chmod 777 $SSH_CONFIG_DIR
Expand Down
1 change: 1 addition & 0 deletions modules/org.eclipse.jkube.remote-dev/module.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ packages:
- openssh-client
- openssh-server-pam
- openssh-sftp-server
- shadow
execute:
- script: configure