From b743f0ff88fcc7bd8dce1d9a203f93539263ac1f Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Sun, 27 Feb 2011 00:05:32 +0100 Subject: Minor fixes to tunnel setup. --- fripost-docs.org | 6 +++--- 1 file 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 -- cgit v1.2.3