Improve ssh client config

This commit is contained in:
Bob Mottram 2016-05-01 18:22:45 +01:00
parent efcaaed9d6
commit 5be82ed463
1 changed files with 11 additions and 8 deletions

View File

@ -99,14 +99,17 @@ function configure_ssh_client {
ssh_remove_small_moduli
echo 'Host *.onion
ServerAliveInterval 60
ServerAliveCountMax 3
ProxyCommand sh -c 'monkeysphere ssh-proxycommand --no-connect %h %p ; connect -R remote -5 -S 127.0.0.1:9050 %h %p'
Host *
ServerAliveInterval 60
ServerAliveCountMax 3
ProxyCommand monkeysphere ssh-proxycommand %h %p' > ~/.ssh/config
if [ ! -d ~/.ssh ]; then
mkdir ~/.ssh
fi
echo 'Host *.onion' > ~/.ssh/config
echo ' ServerAliveInterval 60' >> ~/.ssh/config
echo ' ServerAliveCountMax 3' >> ~/.ssh/config
echo " ProxyCommand sh -c 'monkeysphere ssh-proxycommand --no-connect %h %p ; connect -R remote -5 -S 127.0.0.1:9050 %h %p'" >> ~/.ssh/config
echo 'Host *' >> ~/.ssh/config
echo ' ServerAliveInterval 60' >> ~/.ssh/config
echo ' ServerAliveCountMax 3' >> ~/.ssh/config
echo ' ProxyCommand monkeysphere ssh-proxycommand %h %p' >> ~/.ssh/config
echo ''
echo $'Copy the following into a file called /home/username/.ssh/authorized_keys on the Freedombone server'