Check for proxycommand

This commit is contained in:
Bob Mottram 2017-03-07 18:33:38 +00:00
parent 5a17919b71
commit d21fe21751
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ function configure_ssh_client {
proxycmd="/usr/bin/nc -X 5 -x 127.0.0.1:9050 %h %p"
fi
if ! grep -q "# ${PROJECT_NAME} settings" ~/.ssh/config; then
if ! grep -q 'Host *.onion' ~/.ssh/config; then
if ! grep -q 'ProxyCommand' ~/.ssh/config; then
echo "# ${PROJECT_NAME} settings start" >> ~/.ssh/config
echo 'Host *.onion' >> ~/.ssh/config
echo ' ServerAliveInterval 60' >> ~/.ssh/config