Is there a way to Upgrade terminal sftp client?
Install homebrew a macOS package manager.  https://brew.sh/

HomeBrew is most often mentioned these days. sftp appears to be one of the programs you can download. 

other package managers are:
MacPort -- BSD licenses
Fink -- GNU General Public License

I'd figure out what sftp client Ubuntu uses and look around for the macOS version.