Commit 097f63b5 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Add additional SSH wrapper scripts

parent fe77cb98
Loading
Loading
Loading
Loading

.ssh/bin/scp

0 → 120000
+1 −0
Original line number Diff line number Diff line
ssh
 No newline at end of file
+4 −2
Original line number Diff line number Diff line
#!/bin/sh
set -eu

NAME=`basename $0`

. ~/.ssh/lib/funcs.sh

manage_path PATH `dirname $0` beginning 

case " $*" in
	*' -F'*) exec ${SSH_BIN} "$@" ;;
	*' -F'*) exec `getbin $NAME` "$@" ;;
	' --make-config'*) 
		make_config
		echo "$CONFIG"
		;;
	*)
		make_config
		exec ${SSH_BIN} -F "$CONFIG" "$@"
		exec `getbin $NAME` -F "$CONFIG" "$@"
		;;
esac
+4 −3
Original line number Diff line number Diff line
# vim: ft=sh

SAFE_PATH=`echo "$PATH" | sed "s|${HOME}/.ssh/bin:||g"`
SSH_BIN=`PATH="$SAFE_PATH" which ssh`; export SSH_BIN
. ~/.shell/funcs

getbin() { PATH="$SAFE_PATH" which $1; }

. ~/.shell/funcs
SAFE_PATH=`echo "$PATH" | sed "s|${HOME}/.ssh/bin:||g"`
SSH_BIN=`getbin ssh`; export SSH_BIN


die() {