ssh permissions

This commit is contained in:
Bob Mottram 2016-01-25 16:37:33 +00:00
parent 93fd202696
commit 93a593e327
1 changed files with 2 additions and 0 deletions

View File

@ -3532,6 +3532,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
fi
if ! grep -q 'Host *.onion' /root/.ssh/config; then
if [ ! -f /root/.ssh ]; then