Add support of multiplexing ssh.

This commit is contained in:
chris committed 2017-11-23 04:30:37 +01:00
1 parent bceeb9bbbd
commit 97e034bd99
4 files changed
+138 -62

No files matched your search

+6 -2
View File
@@ -217,8 +217,7 @@ rm=`which rm`
rsync=`which rsync`
scp=`which scp`
sgdisk=`which sgdisk`
#ssh=`which ssh`
ssh="`which ssh` -n"
ssh=`which ssh`
sort=`which sort`
tar=`which tar`
tune2fs=`which tune2fs`
@@ -230,6 +229,11 @@ sort=`which sort`
sync=`which sync`
touch=`which touch`
ssh_opts='-o ControlMaster=auto -o ControlPath=/root/.ssh/%r@%h:%p -o ControlPersist=60'
if [[ -n "$ssh" ]] ; then
ssh="$ssh -n $ssh_opts"
fi
export basename dirname awk cat cryptsetup cut date dd e2fsck find fdisk grep gzip hdparm logrotate mkdir mount mv parted ps rm rsync scp ssh sort tar tune2fs umount sfdisk sgdisk su sudo sort sync touch
#
# ------------------ Ende Programme ----------------- #