Type this into the Terminal:
If the result were
/usr/bin/sftp, means you are using the macOS built-in SFTP version that is out of date compared two the GNU version. More details here.
You could install the Homebrew version — which is the GNU version — instead
brew install openssh
And list the
openssh install path:
brew list openssh
Tou would see some binary here for example:
/usr/local/Cellar/openssh/8.4p1_2/.bottle/etc/ (12 files)
/usr/local/Cellar/openssh/8.4p1_2/libexec/ (4 files)
/usr/local/Cellar/openssh/8.4p1_2/share/man/ (15 files)
the result would be
/usr/local/bin/sftp,which is a soft link of
Then try the Homebrew version of SFTP and enjoy it!