summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorIrina Gómez <irinagomez@us.es>2019-09-25 13:51:52 +0200
committerIrina Gómez <irinagomez@us.es>2019-09-25 13:51:52 +0200
commit8645a4a3854dda6384ee64d9992240bb51345c3f (patch)
tree2c0d2c955b24c4427f5628db3d540fe8d0fa34a8 /client
parent3dff695541c5e48824a504aa14cfdd4029b30330 (diff)
#929 setsslkey: Script for configurate public key authentication in ogLive.
Diffstat (limited to 'client')
-rwxr-xr-xclient/shared/etc/preinit/fileslinks.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/client/shared/etc/preinit/fileslinks.sh b/client/shared/etc/preinit/fileslinks.sh
index eecca019..826282da 100755
--- a/client/shared/etc/preinit/fileslinks.sh
+++ b/client/shared/etc/preinit/fileslinks.sh
@@ -9,6 +9,9 @@
#@version 1.0.5 - Enlace para librería libmac (obsoleto en versión 1.1.1).
#@author Ramon Gomez, ETSII Universidad de Sevilla
#@date 2012-06-28
+#@version 1.1.2 - Autenticación con clave pública para SSH
+#@author Irina Gómez, ETSII Universidad de Sevilla
+#@date 2019-09-25
#*/
@@ -39,6 +42,9 @@ if [ -n "$OPENGNSYS" ]; then
[ -f $QTDIR/etc/$i ] || ln -fs $i $QTDIR/etc 2>/dev/null
done
+ # Autenticación con clave pública para SSH
+ [ -f /scripts/ssl/authorized_keys ] && cp /scripts/ssl/* /root/.ssh
+
else
# FIXME Error: entorno de OpenGnsys no configurado.
echo "Error: OpenGnsys environment is not configured." # FIXME: definir mensaje.