-# $OpenBSD: scp-uri.sh,v 1.3 2021/08/03 01:05:24 djm Exp $
+# $OpenBSD: scp-uri.sh,v 1.4 2021/08/10 03:35:45 djm Exp $
# Placed in the Public Domain.
tid="scp-uri"
egrep -v '^ +(Port|User) +.*$' $OBJ/ssh_config.orig > $OBJ/ssh_config
for mode in scp sftp ; do
+ tag="$tid: $mode mode"
if test $mode = scp ; then
- scpopts="-M scp -q -S ${OBJ}/scp-ssh-wrapper.scp"
- tag="$tid"
+ scpopts="-O -q -S ${OBJ}/scp-ssh-wrapper.scp"
else
- scpopts="-M sftp -D ${SFTPSERVER}"
- tag="$tid: sftp mode"
+ scpopts="-s -D ${SFTPSERVER}"
fi
verbose "$tag: simple copy local file to remote file"
scpclean
-# $OpenBSD: scp.sh,v 1.12 2021/08/03 01:05:24 djm Exp $
+# $OpenBSD: scp.sh,v 1.13 2021/08/10 03:35:45 djm Exp $
# Placed in the Public Domain.
tid="scp"
}
for mode in scp sftp ; do
+ tag="$tid: $mode mode"
if test $mode = scp ; then
- scpopts="-M scp -q -S ${OBJ}/scp-ssh-wrapper.scp"
- tag="$tid"
+ scpopts="-O -q -S ${OBJ}/scp-ssh-wrapper.scp"
else
- scpopts="-M sftp -D ${SFTPSERVER}"
- tag="$tid: sftp mode"
+ scpopts="-s -D ${SFTPSERVER}"
fi
verbose "tid: simple copy local file to local file"
scpclean
-# $OpenBSD: scp3.sh,v 1.2 2021/08/06 09:00:18 dtucker Exp $
+# $OpenBSD: scp3.sh,v 1.3 2021/08/10 03:35:45 djm Exp $
# Placed in the Public Domain.
tid="scp3"
chmod 755 ${DIR} ${DIR2}
}
-# XXX sftp too once it's ready
-for mode in scp ; do
+for mode in scp sftp ; do
scpopts="-F${OBJ}/ssh_proxy -S ${SSH} -q"
tag="$tid: $mode mode"
-# if test $mode = scp ; then
-# scpopts="$scpopts -O"
-# fi
+ if test $mode = scp ; then
+ scpopts="$scpopts -O"
+ else
+ scpopts="-s -D ${SFTPSERVER}"
+ fi
verbose "$tag: simple copy remote file to remote file"
scpclean