Directories
This commit is contained in:
parent
0181518f60
commit
3eed806474
|
@ -3533,7 +3533,7 @@ function enable_ssh_via_onion {
|
||||||
fi
|
fi
|
||||||
apt-get -y install tor connect-proxy
|
apt-get -y install tor connect-proxy
|
||||||
if ! grep -q 'Host *.onion' /home/$MY_USERNAME/.ssh/config; then
|
if ! grep -q 'Host *.onion' /home/$MY_USERNAME/.ssh/config; then
|
||||||
if [ ! -f /home/$MY_USERNAME/.ssh ]; then
|
if [ ! -d /home/$MY_USERNAME/.ssh ]; then
|
||||||
mkdir /home/$MY_USERNAME/.ssh
|
mkdir /home/$MY_USERNAME/.ssh
|
||||||
fi
|
fi
|
||||||
echo 'Host *.onion' >> /home/$MY_USERNAME/.ssh/config
|
echo 'Host *.onion' >> /home/$MY_USERNAME/.ssh/config
|
||||||
|
@ -3542,7 +3542,7 @@ function enable_ssh_via_onion {
|
||||||
chown $MY_USER_NAME:$MY_USERNAME /home/$MY_USERNAME/.ssh/config
|
chown $MY_USER_NAME:$MY_USERNAME /home/$MY_USERNAME/.ssh/config
|
||||||
fi
|
fi
|
||||||
if ! grep -q 'Host *.onion' /root/.ssh/config; then
|
if ! grep -q 'Host *.onion' /root/.ssh/config; then
|
||||||
if [ ! -f /root/.ssh ]; then
|
if [ ! -d /root/.ssh ]; then
|
||||||
mkdir /root/.ssh
|
mkdir /root/.ssh
|
||||||
fi
|
fi
|
||||||
echo 'Host *.onion' >> /root/.ssh/config
|
echo 'Host *.onion' >> /root/.ssh/config
|
||||||
|
|
Loading…
Reference in New Issue