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 ssh_remove_small_moduli
echo 'Host *.onion if [ ! -d ~/.ssh ]; then
ServerAliveInterval 60 mkdir ~/.ssh
ServerAliveCountMax 3 fi
ProxyCommand sh -c 'monkeysphere ssh-proxycommand --no-connect %h %p ; connect -R remote -5 -S 127.0.0.1:9050 %h %p' echo 'Host *.onion' > ~/.ssh/config
Host * echo ' ServerAliveInterval 60' >> ~/.ssh/config
ServerAliveInterval 60 echo ' ServerAliveCountMax 3' >> ~/.ssh/config
ServerAliveCountMax 3 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
ProxyCommand monkeysphere ssh-proxycommand %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 ''
echo $'Copy the following into a file called /home/username/.ssh/authorized_keys on the Freedombone server' echo $'Copy the following into a file called /home/username/.ssh/authorized_keys on the Freedombone server'