Merge pull request #25 from home-assistant/build

Fix keygen (#24)
This commit is contained in:
Pascal Vizeli
2017-05-01 00:23:40 +02:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "SSH server",
"version": "0.4",
"version": "0.5",
"slug": "ssh",
"description": "Connect to your server over SSH",
"startup": "before",

View File

@@ -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