Procházet zdrojové kódy

Create ssh client config

Bob Mottram před 9 roky
rodič
revize
efcaaed9d6
1 změnil soubory, kde provedl 10 přidání a 1 odebrání
  1. 10
    1
      src/freedombone-client

+ 10
- 1
src/freedombone-client Zobrazit soubor

99
 
99
 
100
 	ssh_remove_small_moduli
100
 	ssh_remove_small_moduli
101
 
101
 
102
+	echo 'Host *.onion
103
+	ServerAliveInterval 60
104
+	ServerAliveCountMax 3
105
+	ProxyCommand sh -c 'monkeysphere ssh-proxycommand --no-connect %h %p ; connect -R remote -5 -S 127.0.0.1:9050 %h %p'
106
+Host *
107
+	ServerAliveInterval 60
108
+	ServerAliveCountMax 3
109
+	ProxyCommand monkeysphere ssh-proxycommand %h %p' > ~/.ssh/config
110
+
102
 	echo ''
111
 	echo ''
103
 	echo $'Copy the following into a file called /home/username/.ssh/authorized_keys on the Freedombone server'
112
 	echo $'Copy the following into a file called /home/username/.ssh/authorized_keys on the Freedombone server'
104
 	echo ''
113
 	echo ''
108
 }
117
 }
109
 
118
 
110
 function configure_monkeysphere {
119
 function configure_monkeysphere {
111
-	sudo apt-get -y install monkeysphere
120
+	sudo apt-get -y install tor connect-proxy monkeysphere
112
 }
121
 }
113
 
122
 
114
 function show_help {
123
 function show_help {