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