secure copy from server to server
This page is mainly about secure copy from server to server
Prerequisites
SSH installed on both servers
SCP installed on the destination server
Port 22 open on both servers (although the source server used port 722 for SSH)
Access to the root user on the destination server
Knowledge of the location of the website/vhosts files on the destination server
Access to a user for the remote server.
$ apt-get install sshpass
$ sshpass -p "password" scp -r -P 123 user@server:/path/to/source/folder /path/to/destination/folder
Last modified: October 5th, 2021