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

Add a check for 'nc' to ~/.ssh/forward

parent 745b8f2a
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
#!/bin/sh
die(){ echo "$*" >&2; exit 1; }
has(){ type $1 >/dev/null 2>/dev/null; }
has nc || die "nc is needed to connect to $1:$2"
nc $1 $2 || exec ssh -W $1:$2 $3