Following are the steps that can be followed to secure copy multiple files from one server to another server:
- Install sshpass using:
- $ yum -y install sshpass on centos
- Now execute following command to secure copy multiple file from one server to another:
- $ sshpass -p "password" nohup scp user@remote-server-address:/source/*.* destination/
- You can also use nohup to run the process in the background:
- $ nohup sshpass -p "password" nohup scp user@remote-server-address:/source/*.* destination/ &
Comments
Post a Comment