Using lftp
lftp
is a sophisticated file transfer program that supports multiple protocols, including SFTP.
Install
lftp
if it's not already installed:sudo apt-get install lftp # On Debian-based systems sudo yum install lftp # On RedHat-based systems
Use
lftp
with parallel transfers:lftp -u username,password sftp://destination_server -e "mput -P 5 exp_schemas_*.dmp; quit"
Here,
-P 5
specifies the number of parallel transfers.