SSH using SCP:/directory: Permission denied

Source: Internet
Author: User

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

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.