Today, the SCP command is used to prepare the file for transfer to the target server, but the problem of permission denied is that it means denying access
scp apache-tomcat-8.0.28.tar xuliugen@192.168.31.229:/home/xuliugen/webs
Finally know the problem originally because there is no operation permission for the directory, the default is/TMP has permissions
In this case, we later in the transfer, you can put the files in the TMP file directory, and then in the MV or SCP to other directories, can be.
However, doing so goes through an intermediate process, so we can modify the permissions that are currently used for the directory:
Here we can clearly see that the permissions from the original RWXR modified to RWXRW added a can write permission, try again, upload success:
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
SSH using SCP:/directory: Permission denied