This commit is contained in:
Bob Mottram 2016-01-27 10:40:43 +00:00
parent a72e62a519
commit 12bbf03f5f
2 changed files with 4 additions and 4 deletions

View File

@ -3635,8 +3635,8 @@ function enable_ssh_via_onion {
fi
echo 'Host *.onion' >> /home/$MY_USERNAME/.ssh/config
echo 'ProxyCommand connect -R remote -5 -S 127.0.0.1:9050 %h %p' >> /home/$MY_USERNAME/.ssh/config
chown $MY_USER_NAME:$MY_USERNAME /home/$MY_USERNAME/.ssh
chown $MY_USER_NAME:$MY_USERNAME /home/$MY_USERNAME/.ssh/config
chown $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/.ssh
chown $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/.ssh/config
fi
if ! grep -q 'Host *.onion' /root/.ssh/config; then
if [ ! -d /root/.ssh ]; then

View File

@ -126,8 +126,8 @@ function enable_trove_via_onion {
fi
echo 'Host *.onion' >> /home/trove/.ssh/config
echo 'ProxyCommand connect -R remote -5 -S 127.0.0.1:9050 %h %p' >> /home/trove/.ssh/config
chown $MY_USER_NAME:trove /home/trove/.ssh
chown $MY_USER_NAME:trove /home/trove/.ssh/config
chown trove:trove /home/trove/.ssh
chown trove:trove /home/trove/.ssh/config
fi
}