SSH: Difference between revisions
From Achintya Rao’s Wiki
Created page with "== For CERN == For connecting to CERN from off-site (see also Telework), use <code>sshuttle</code> ([https://github.com/sshuttle/sshuttle GitHub repo]). * Need to use the..." |
m Change location of sshuttle script |
||
| (One intermediate revision by the same user not shown) | |||
| 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>cernproxy</code> script, <code>chmod</code> it and move it to <code>/usr/local/bin</code>: | ||
#!/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 <code>Network Settings</code>. | * Make sure [[Firefox]] is configured correctly: '''Proxy DNS when using SOCKS v5''' must be selected, under <code>Network Settings</code>. | ||
[[Category:Work]] | [[Category:Work]] | ||
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).
- See instructions for configuring
sshuttlein the Teleworking Tips & Tricks document. Add this to acernproxyscript,chmodit and move it to/usr/local/bin:
#!/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.
