首页 > 技术文章 > xftp传输文件失败的解决方法

liabin 2020-06-16 11:18 原文

 

 

解决方法:
方法1:修改权限 chmod 777 目的地文件夹。
方法2: 此时需要把xftp切换到root用户下进行传输。
补充:xftp不能使用root登录的解决办法
1 编辑vim /etc/ssh/sshd_config文件

把PermitRootLogin Prohibit-password 添加#注释掉

新添加:PermitRootLogin yes

更改PermitEmptyPasswords为 no

2 然后重启ssh服务

service ssh restart(或者执行:/etc/init.d/ssh restart)

3.重启服务器

shutdown -r now

推荐阅读