Skip to content

Commit

Permalink
Merge pull request #340 from threefoldtech/development_fix_ssh
Browse files Browse the repository at this point in the history
remove echo ssh key in authorized_keys for multiple images
  • Loading branch information
hossnys authored Feb 19, 2025
2 parents 8a7b8e0 + aa8776e commit 0d98650
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion tfgrid3/casper/scripts/sshkey.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ exec: |
chmod 700 /root/.ssh
chmod 600 /root/.ssh/authorized_keys
echo "$SSH_KEY" >> /root/.ssh/authorized_keys
fi
'
oneshot: true
2 changes: 0 additions & 2 deletions tfgrid3/jenkins/rootfs/etc/zinit/ssh-init.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,5 @@ exec: |
chmod 700 /root/.ssh
chmod 600 /root/.ssh/authorized_keys
echo "$SSH_KEY" >> /root/.ssh/authorized_keys
'
oneshot: true
1 change: 0 additions & 1 deletion tfgrid3/taiga/scripts/sshd_init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ mkdir -p ~/.ssh
mkdir -p /var/run/sshd
chmod 600 ~/.ssh
chmod 600 /etc/ssh/*
echo $SSH_KEY >> ~/.ssh/authorized_keys
1 change: 0 additions & 1 deletion tfgrid3/wordpress/zinit/ssh_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ exec: /bin/sh -eux -c "
chmod 600 /etc/ssh/*;
touch ~/.ssh/authorized_keys;
chmod 600 ~/.ssh/authorized_keys;
echo $SSH_KEY > /root/.ssh/authorized_keys;
echo 'ssh configred'"
oneshot: true

0 comments on commit 0d98650

Please sign in to comment.