返回顶部

收藏

rsync同步失败: rsync: failed to connect to xxx: Permission denied (13)解决方法

更多

rsync同步文件时报错:

rsync: failed to connect to xxx: Permission denied (13)
rsync error: error in socket IO (code 10) at clientserver.c(124) [receiver=3.0.6]

出现这个错误是因为selinux, linux安全增强的补丁导致的。

解决方法是禁用selinux的安全增强, 可以使用命令 setenforce 0来临时禁用,或者通过修改配置文件/etc/sysconfig/selinux 添加 SELINUX=disabled来永久禁用

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
#     targeted - Targeted processes are protected,
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted

标签:linux,rsync

收藏

0人收藏

支持

0

反对

0

评论

  • 没有权限。。

    回复   |   Jonathan_ 发表于 2016-09-05 15:36:36

发表评论