diff options
Diffstat (limited to 'autossh/systemd/system/autossh@.service')
-rw-r--r-- | autossh/systemd/system/autossh@.service | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/autossh/systemd/system/autossh@.service b/autossh/systemd/system/autossh@.service index f549e16..72eb4e3 100644 --- a/autossh/systemd/system/autossh@.service +++ b/autossh/systemd/system/autossh@.service @@ -10,8 +10,8 @@ # * Create locked-down user # adduser --system --group --force-badname $CLIENT # * Accept connections from $CLIENT (copy pubkey from above): -# su - $CLIENT -c "mkdir -p ~/.ssh" -# su - $CLIENT -c "echo '$PUBKEY' > ~/.ssh/authorized_keys" +# su -s /bin/sh -c "mkdir -p ~/.ssh" - $CLIENT +# su -s /bin/sh -c "echo '$PUBKEY' > ~/.ssh/authorized_keys" - $CLIENT # # On $CLIENT # * Test (and approve) connection to $SERVER: |