Modifying ssh keys
oginstaller/pipeline/head There was a failure building this commit
Details
oginstaller/pipeline/head There was a failure building this commit
Details
parent
c38fe4e26f
commit
b717e2b7ee
|
@ -39,9 +39,9 @@ add_user_ogrepository() {
|
||||||
fi
|
fi
|
||||||
if [ ! -d $OGUSER_HOME/.ssh ] ; then
|
if [ ! -d $OGUSER_HOME/.ssh ] ; then
|
||||||
mkdir -p $OGUSER_HOME/.ssh
|
mkdir -p $OGUSER_HOME/.ssh
|
||||||
cp ssh-keys/opengnsys $OGUSER_HOME/.ssh/id_ed25519
|
cp /tmp/oginstall/ssh-keys/opengnsys $OGUSER_HOME/.ssh/id_ed25519
|
||||||
cp ssh-keys/opengnsys.pub $OGUSER_HOME/.ssh/id_ed25519.pub
|
cp /tmp/oginstall/ssh-keys/opengnsys.pub $OGUSER_HOME/.ssh/id_ed25519.pub
|
||||||
cat ssh-keys/opengnsys.pub >> $OGUSER_HOME/.ssh/authorized_keys
|
cat /tmp/oginstall/ssh-keys/opengnsys.pub >> $OGUSER_HOME/.ssh/authorized_keys
|
||||||
chown -R $OGUSER:$OGUSER $OGUSER_HOME/.ssh
|
chown -R $OGUSER:$OGUSER $OGUSER_HOME/.ssh
|
||||||
chmod 0600 $OGUSER_HOME/.ssh/*
|
chmod 0600 $OGUSER_HOME/.ssh/*
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue