[Linux] Two ubuntu server scp transmission permission problem analysis

In fact, this is a very simple issue of permissions. But also analyze it.

0. Environment

ubuntu16.04

1. Problem

Permission denied

2. Analysis and solution

1) Which side supports file transfer. For example, the internal network can copy and transfer files from the external network, but the external network may not have the authority to transfer files to the internal network.

2) The files in the copied server already have operation permissions such as read and write.

3) The copy server storage directory has permission.

Command to set permissions (simple and rude):

sudo chmod 777 -R ./your_file_name

Transfer files:

sudo scp -r [email protected]:/home/XXX/your_floder1/* ./your_floder2/

 

Guess you like

Origin blog.csdn.net/qq_35975447/article/details/113932409