User Tools

Site Tools


osx:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
osx:start [2019/02/25 14:40]
robm [VPN over SSH] Add instructions for automating via SSH config files
osx:start [2019/02/25 14:42] (current)
robm [Automating via SSH configuration files]
Line 756: Line 756:
  
 ===== Automating via SSH configuration files ===== ===== Automating via SSH configuration files =====
 +
 +<note important>​All commands here are run as **root** on the client system</​note>​
  
   - **As root** on your client system, generate a new SSH keypair to use for VPN. <​code>​ssh-keygen -f ~/​.ssh/​id_rsa_vpn -N ''</​code>​   - **As root** on your client system, generate a new SSH keypair to use for VPN. <​code>​ssh-keygen -f ~/​.ssh/​id_rsa_vpn -N ''</​code>​
Line 801: Line 803:
 route delete 10/8 $GATEWAY route delete 10/8 $GATEWAY
 route delete $REMOTE_HOST $GATEWAY route delete $REMOTE_HOST $GATEWAY
-) &</​code>​+) &</​code> ​This script is unlikely to work on other OS
   - Make the new script executable: <​code>​chmod a+x ~root/​.ssh/​vpn.sh</​code>​   - Make the new script executable: <​code>​chmod a+x ~root/​.ssh/​vpn.sh</​code>​
   - Test it by running <​code>​ssh vpn</​code>​   - Test it by running <​code>​ssh vpn</​code>​
osx/start.txt · Last modified: 2019/02/25 14:42 by robm