Modifying ssh keys
oginstaller/pipeline/head There was a failure building this commit Details

ogrepo-keys
Nicolas Arenas 2025-02-06 12:52:00 +01:00
parent c38fe4e26f
commit b717e2b7ee
1 changed files with 3 additions and 3 deletions

View File

@ -39,9 +39,9 @@ add_user_ogrepository() {
fi
if [ ! -d $OGUSER_HOME/.ssh ] ; then
mkdir -p $OGUSER_HOME/.ssh
cp ssh-keys/opengnsys $OGUSER_HOME/.ssh/id_ed25519
cp ssh-keys/opengnsys.pub $OGUSER_HOME/.ssh/id_ed25519.pub
cat ssh-keys/opengnsys.pub >> $OGUSER_HOME/.ssh/authorized_keys
cp /tmp/oginstall/ssh-keys/opengnsys $OGUSER_HOME/.ssh/id_ed25519
cp /tmp/oginstall/ssh-keys/opengnsys.pub $OGUSER_HOME/.ssh/id_ed25519.pub
cat /tmp/oginstall/ssh-keys/opengnsys.pub >> $OGUSER_HOME/.ssh/authorized_keys
chown -R $OGUSER:$OGUSER $OGUSER_HOME/.ssh
chmod 0600 $OGUSER_HOME/.ssh/*