mirror of
https://github.com/aljazceru/addons.git
synced 2026-02-08 14:44:20 +01:00
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "SSH server",
|
||||
"version": "0.4",
|
||||
"version": "0.5",
|
||||
"slug": "ssh",
|
||||
"description": "Connect to your server over SSH",
|
||||
"startup": "before",
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user