aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Kangas <skangas@skangas.se>2011-02-27 00:05:32 +0100
committerStefan Kangas <skangas@skangas.se>2011-02-27 00:05:32 +0100
commitb743f0ff88fcc7bd8dce1d9a203f93539263ac1f (patch)
tree03d4ae664c14cc0c149f65011b15f843963b4fa5
parent0a2cf28983d527143deafaf83c0747bc58f86145 (diff)
Minor fixes to tunnel setup.
-rw-r--r--fripost-docs.org6
1 files changed, 3 insertions, 3 deletions
diff --git a/fripost-docs.org b/fripost-docs.org
index 9b675f8..62a902d 100644
--- a/fripost-docs.org
+++ b/fripost-docs.org
@@ -312,7 +312,7 @@ smarthost = the server receiving email from the internet (configured as MX)
sudo adduser --home=$TUNNEL_HOME --shell=`type rbash|cut -d' ' -f3` \
--disabled-password $TUNNEL_USER
- echo "exit" | sudo -u $TUNNEL_USER tee $TUNNEL_HOME/.bash_profile
+ echo "exit" | sudo -u $TUNNEL_USER tee -a $TUNNEL_HOME/.bash_profile
# Also, make sure to add this user to AllowUsers in /etc/ssh/sshd_config.
@@ -322,9 +322,9 @@ smarthost = the server receiving email from the internet (configured as MX)
THE_PUBLIC_KEY="ssh-rsa xxxxxxxxxxx"
- sudo -u $TUNNEL_USER mkdir $TUNNEL_HOME/.ssh
+ sudo -u $TUNNEL_USER mkdir -p $TUNNEL_HOME/.ssh
echo "command=\"nc localhost $DEST_PORT\",no-X11-forwarding,no-agent-forwarding,\
-no-port-forwarding $THE_PUBLIC_KEY" | sudo -u $TUNNEL_USER tee $TUNNEL_HOME/.ssh/authorized_keys2
+no-port-forwarding $THE_PUBLIC_KEY" | sudo -u $TUNNEL_USER tee -a $TUNNEL_HOME/.ssh/authorized_keys2
**** Set up the tunnel