From d82b13d2dfe025cb76389dd0ae80cbd88998ee07 Mon Sep 17 00:00:00 2001 From: youngsoul Date: Fri, 23 Dec 2016 16:09:40 -0600 Subject: [PATCH] added setssh --- setssh/setssh.json | 21 +++++++++++++++++++++ setssh/setssh.sh | 8 ++++++++ 2 files changed, 29 insertions(+) create mode 100644 setssh/setssh.json create mode 100755 setssh/setssh.sh diff --git a/setssh/setssh.json b/setssh/setssh.json new file mode 100644 index 0000000..9b47c1c --- /dev/null +++ b/setssh/setssh.json @@ -0,0 +1,21 @@ +{ + "name": "setssh", + "text": "%1 SSH server", + "script": "setssh.sh", + "args": [ + { + "type": "menu", + "options": ["Enable", "Disable"] + } + ], + "network": false, + "continue": true, + "type": "setting", + "category":"setting", + "supportedOperatingSystems": [ + "raspbian-pibakery.img", + "raspbian-lite-pibakery.img" + ], + "shortDescription":"Enable or disable ssh server to allow for SSH login", + "longDescription":"By default Raspbian does not allow for SSH access and this must be enabled for ssh logins to work." +} diff --git a/setssh/setssh.sh b/setssh/setssh.sh new file mode 100755 index 0000000..c53b28d --- /dev/null +++ b/setssh/setssh.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +if [ "$1" == "Enable" ] +then + raspi-config nonint do_ssh 0 +else + raspi-config nonint do_ssh 1 +fi