ssh permissions
This commit is contained in:
parent
93fd202696
commit
93a593e327
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue