Skip to content

Commit

Permalink
fix(remote-dev): unlock ssh user (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
manusa authored Feb 10, 2025
1 parent d7b4a03 commit b031023
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
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

0 comments on commit b031023

Please sign in to comment.