SSH: Difference between revisions

From Achintya Rao’s Wiki
Change sshuttle settings per Adrian's suggestion
m Change location of sshuttle script
 
Line 2: Line 2:


For connecting to CERN from off-site (see also [[Telework]]), use <code>sshuttle</code> ([https://github.com/sshuttle/sshuttle GitHub repo]).
For connecting to CERN from off-site (see also [[Telework]]), use <code>sshuttle</code> ([https://github.com/sshuttle/sshuttle GitHub repo]).
* See instructions for configuring <code>sshuttle</code> in [https://codimd.web.cern.ch/vjC8BHbTS7etHwJve-K2Uw the Teleworking Tips & Tricks document]. Add this to a <code>cern_proxy</code> script:
* See instructions for configuring <code>sshuttle</code> in [https://codimd.web.cern.ch/vjC8BHbTS7etHwJve-K2Uw the Teleworking Tips & Tricks document]. Add this to a <code>cernproxy</code> script, <code>chmod</code> it and move it to <code>/usr/local/bin</code>:


     #!/bin/sh
     #!/bin/sh

Latest revision as of 14:18, 20 March 2020

For CERN

For connecting to CERN from off-site (see also Telework), use sshuttle (GitHub repo).

   #!/bin/sh
   
   case $1 in
       connect)
           sshuttle --dns -vr achintya@lxplus.cern.ch 137.138.0.0/16 128.141.0.0/16 128.142.0.0/16 188.184.0.0/15 --daemon --pidfile /tmp/sshuttle.pid
           shift
       ;;
       disconnect)
           kill `cat /tmp/sshuttle.pid`
           shift
       ;;
       *)
           # unknown option
       ;;
   esac
  • Make sure Firefox is configured correctly: Proxy DNS when using SOCKS v5 must be selected, under Network Settings.