diff options
author | Jonas Smedegaard <dr@jones.dk> | 2017-04-16 09:58:03 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2017-04-16 09:58:03 +0200 |
commit | b474d527751656d8f33e3080c65ff9b8c2b39471 (patch) | |
tree | d47d2bea39326260e6d247d174acdd1ab45e0d86 | |
parent | b101b05edddf8c4d0bc7893f0d0128c9f9a31b71 (diff) |
Tidy comments: Fix su syntax.
-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: |