First, copy the native files to the remote server
#scp/home/administrator/news.txt [Email protected]:/etc/squid
/home/administrator/absolute path to local files
News.txt The local file to be copied to the server
Root logs on to the remote server through the root user (you can also use other users with equal privileges)
192.168.6.129 the IP address of the remote server (you can also use a domain name or machine name)
/etc/squid copying local files to a path located on a remote server
Second, copy the files on the remote server to the native
#scp [Email Protected]:/usr/local/sin.sh/home/administrator
Remote logs on to the server remotely via a long-distance user (other users with equivalent privileges can also be used)
www.abc.com the domain name of the remote server (you can also use the server IP address)
/usr/local/sin.sh files that are located on a remote server to be copied to this computer
/home/administrator to copy remote files to the local absolute path
Remote copy of Linux SCP server