Some notable changes, from upstream's release notes: - sshd(8): Remove support for obsolete "host/port" syntax. - ssh(1): When prompting whether to record a new host key, accept the key fingerprint as a synonym for "yes". - ssh-keygen(1): when acting as a CA and signing certificates with an RSA key, default to using the rsa-sha2-512 signature algorithm. - ssh(1), sshd(8), ssh-keygen(1): this release removes the "ssh-rsa" (RSA/SHA1) algorithm from those accepted for certificate signatures. - ssh-sk-helper(8): this is a new binary. It is used by the FIDO/U2F support to provide address-space isolation for token middleware libraries (including the internal one). - ssh(1): this release enables UpdateHostkeys by default subject to some conservative preconditions. - scp(1): this release changes the behaviour of remote to remote copies (e.g. "scp host-a:/path host-b:") to transfer through the local host by default. - scp(1): experimental support for transfers using the SFTP protocol as a replacement for the venerable SCP/RCP protocol that it has traditionally used. Additional integration work is needed to support FIDO/U2F in the base system. Deprecation Notice ------------------ OpenSSH will disable the ssh-rsa signature scheme by default in the next release. Reviewed by: imp MFC after: 1 month Relnotes: Yes Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D29985
72 lines
1.0 KiB
Bash
72 lines
1.0 KiB
Bash
#!/bin/sh
|
|
# $OpenBSD: scp-ssh-wrapper.sh,v 1.4 2019/07/19 03:45:44 djm Exp $
|
|
# Placed in the Public Domain.
|
|
|
|
printname () {
|
|
NAME=$1
|
|
save_IFS=$IFS
|
|
IFS=/
|
|
set -- `echo "$NAME"`
|
|
IFS="$save_IFS"
|
|
while [ $# -ge 1 ] ; do
|
|
if [ "x$1" != "x" ]; then
|
|
echo "D0755 0 $1"
|
|
fi
|
|
shift;
|
|
done
|
|
}
|
|
|
|
# Discard all but last argument. We use arg later.
|
|
while test "x$1" != "x"; do
|
|
arg="$1"
|
|
shift
|
|
done
|
|
|
|
BAD="../../../../../../../../../../../../../${DIR}/dotpathdir"
|
|
|
|
case "$SCPTESTMODE" in
|
|
badserver_0)
|
|
echo "D0755 0 /${DIR}/rootpathdir"
|
|
echo "C755 2 rootpathfile"
|
|
echo "X"
|
|
;;
|
|
badserver_1)
|
|
echo "D0755 0 $BAD"
|
|
echo "C755 2 file"
|
|
echo "X"
|
|
;;
|
|
badserver_2)
|
|
echo "D0755 0 $BAD"
|
|
echo "C755 2 file"
|
|
echo "X"
|
|
;;
|
|
badserver_3)
|
|
printname $BAD
|
|
echo "C755 2 file"
|
|
echo "X"
|
|
;;
|
|
badserver_4)
|
|
printname $BAD
|
|
echo "D0755 0 .."
|
|
echo "C755 2 file"
|
|
echo "X"
|
|
;;
|
|
badserver_5)
|
|
echo "D0555 0 "
|
|
echo "X"
|
|
;;
|
|
badserver_6)
|
|
echo "D0555 0 ."
|
|
echo "X"
|
|
;;
|
|
badserver_7)
|
|
echo "C0755 2 extrafile"
|
|
echo "X"
|
|
;;
|
|
*)
|
|
set -- $arg
|
|
shift
|
|
exec $SCP "$@"
|
|
;;
|
|
esac
|