From 8fcd4a516a670ee1d327c68e345478f507729b9b Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Mon, 1 May 2017 00:11:53 +0200 Subject: [PATCH] Fix keygen (#24) --- ssh/config.json | 2 +- ssh/run.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ssh/config.json b/ssh/config.json index 0eb12e5..f8ab88d 100644 --- a/ssh/config.json +++ b/ssh/config.json @@ -1,6 +1,6 @@ { "name": "SSH server", - "version": "0.4", + "version": "0.5", "slug": "ssh", "description": "Connect to your server over SSH", "startup": "before", diff --git a/ssh/run.sh b/ssh/run.sh index 7ee6dcb..7cb5f42 100644 --- a/ssh/run.sh +++ b/ssh/run.sh @@ -12,9 +12,9 @@ sed -i s/#PasswordAuthentication.*/PasswordAuthentication\ no/ /etc/ssh/sshd_con # Generate authorized_keys file mkdir -p ~/.ssh -for line in $AUTHORIZED_KEYS; do +while read -r line; do echo "$line" >> ~/.ssh/authorized_keys -done +done <<< "$AUTHORIZED_KEYS" chmod 600 ~/.ssh/authorized_keys # Generate host keys