|
@@ -3533,7 +3533,7 @@ function enable_ssh_via_onion {
|
3533
|
3533
|
fi
|
3534
|
3534
|
apt-get -y install tor connect-proxy
|
3535
|
3535
|
if ! grep -q 'Host *.onion' /home/$MY_USERNAME/.ssh/config; then
|
3536
|
|
- if [ ! -f /home/$MY_USERNAME/.ssh ]; then
|
|
3536
|
+ if [ ! -d /home/$MY_USERNAME/.ssh ]; then
|
3537
|
3537
|
mkdir /home/$MY_USERNAME/.ssh
|
3538
|
3538
|
fi
|
3539
|
3539
|
echo 'Host *.onion' >> /home/$MY_USERNAME/.ssh/config
|
|
@@ -3542,7 +3542,7 @@ function enable_ssh_via_onion {
|
3542
|
3542
|
chown $MY_USER_NAME:$MY_USERNAME /home/$MY_USERNAME/.ssh/config
|
3543
|
3543
|
fi
|
3544
|
3544
|
if ! grep -q 'Host *.onion' /root/.ssh/config; then
|
3545
|
|
- if [ ! -f /root/.ssh ]; then
|
|
3545
|
+ if [ ! -d /root/.ssh ]; then
|
3546
|
3546
|
mkdir /root/.ssh
|
3547
|
3547
|
fi
|
3548
|
3548
|
echo 'Host *.onion' >> /root/.ssh/config
|