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