Commit faad97d9 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

added ssh config & proxying script

parent 58c9ad72
Loading
Loading
Loading
Loading

.ssh/config

0 → 100644
+32 −0
Original line number Diff line number Diff line
HashKnownHosts no
GSSAPIAuthentication no
CanonicalizeHostname yes
CanonicalDomains lw.kodo.org.uk kodo.org.uk devnet.actual-experience.com actual-experience.com

# === General Identities ===
Host *.bath.ac.uk
	User su2bc


# === LAN Settings ===
Host *.lw.kodo.org.uk 192.168.1.* 192.168.2.*
	ProxyCommand ~/.ssh/forward %h %p lw.kodo.org.uk
	CheckHostIP no

Host *.devnet.actual-experience.com 192.168.100.* 192.168.101.*
	ProxyCommand ~/.ssh/forward %h %p office.kodo.org.uk
	CheckHostIP no


# === Local IPs ===
# localhost and localnetwork fingerprints are too unreliable
Host 192.168.* 10.* *.lan *.local localhost
	CheckHostIp no


# === Conection Sharing ===
# Use connection sharing for any host that does not explicitly block it.
Host *
	ControlMaster auto
	ControlPath ~/.ssh/%r@%h:%p
	ControlPersist 2h

.ssh/forward

0 → 100755
+2 −0
Original line number Diff line number Diff line
#!/bin/sh
nc $1 $2 || exec ssh -W $1:$2 $3