diff options
| author | lassulus <lassulus@googlemail.com> | 2013-01-31 19:41:11 +0100 |
|---|---|---|
| committer | lassulus <lassulus@googlemail.com> | 2013-01-31 19:41:11 +0100 |
| commit | 5f8f9ea9e5f10abcef9c12d48345c098dca78199 (patch) | |
| tree | c4dd748d5c152445569d7dfd2d0877ef66a95daa /services/bin | |
| parent | 7c050acc2559c622b831d9193e2336c15f42de6d (diff) | |
| parent | 9461f6ece9f674588327c6dc3199fc0d7618ac48 (diff) | |
Merge branch 'master' of github.com:krebscode/painload
Diffstat (limited to 'services/bin')
| -rwxr-xr-x | services/bin/services | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/services/bin/services b/services/bin/services index c142a363..e854cbcb 100755 --- a/services/bin/services +++ b/services/bin/services @@ -8,6 +8,8 @@ user=services hostname=${1-localhost} port=1337 +options="${options+$options }-o ControlMaster=no" + if test -n "${services_identity_file-}"; then options="${options+$options }-i $services_identity_file" fi @@ -21,4 +23,11 @@ if echo $hostname | grep -q :; then hostname=`echo $hostname | cut -d: -f1` fi -ssh $options $user@$hostname -p $port +exec 3>&1 +{ + ssh $options $user@$hostname -p $port +} 2>&1 1>&3 | sed ' + /^Connection to '$hostname' closed/d + /^Shared connection to '$hostname' closed/d +' +exec 3>&- |
