For example, to remotely upload files and folders in linux, I want to remotely upload the local folder/home/administrator/Desktop/old/driver/test/to the/root/folder on the machine 192.168.62.10, use the remote root user as the login user scp-r/home/admin... for example, to remotely upload files and folders in linux, I want to remotely upload the local folder/home/administrator/Desktop/old/driver/test/to the/root/folder on the machine 192.168.62.10, use remote root user as login user scp-r/home/administrator/Desktop/old/driver/test/root@192.168.62.10:/root/www.2cto.com Remote upload folder example, I want to remotely upload the local file/home/administrator/Desktop/old/driver/test/test.txt to the/root/folder of 192.168.62.10, use remote root user as login user scp/home/administrator/Desktop/old/driver/test/test.txt root@192.168.62.10:/root/actually upload files and folders the difference is in the parameter-r, it is similar to the cp and rm parameters. for example, to download multiple-r remote files/folders, I want to add the/root/folder on 192.168.62.10, download to local/home/administrator/Desktop/new/, use remote root login scp-r root@192.168.62.10: /root/home/administrator/Desktop/new/summary command structure scp-r for Remote upload and download (whether it is a folder) uploadfile (used when uploading files) root (remote user) @ 192.168.62.10 (remote host): (colon)/root/(remote folder location can be uploaded or downloaded) Download the target location (for download) and then simply www.2cto.com scp-r user @ remotepc: /location: put the source path before user @ remotepc:/location for upload. if the source path is downloaded, put the target path to user @ remotepc: /location: after uploading and downloading, is there some unclear points to teach you a simple method, just like cp source file address destination address scp, change the target address to the remote address author caiying0504.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.