pre { /*控制代码不换行*/ white-space: pre; word-wrap: normal; }

centos 架设vsftpd 后,windows 客户端无法访问 Received unexpected end-of-file from SFTP server 解决之路

首先在win通过ftp连接centos过程中,出现了2个问题,现在对此记录一下,方便后人遇到问题进行查阅

1、由于加密协议不同,需要在ftp客户端设置一下,支持ssh模式,具体自行百度;

2、在设置完协议后,centos返回Received unexpected end-of-file from SFTP server ,解决办法如下:

 首先进入:vi /etc/ssh/sshd_config 


 将Subsystem      sftp    /usr/libexec/openssh/sftp-server 
 
改为Subsystem       sftp    internal-sftp 
 最后重启服务,完工
systemctl restart sshd.service 

最后来一个图

 

 

 


mysql设置权限
grant all privileges on*.*to'root'@'%'identifiedby'monkey~531'withgrant option;

ftp添加用户
useradd -d /home/wwwroot/web1 -g ftp -s /sbin/nologin xiaopohou

ftp设置权限
chown -R xiaopohou_ftp /home/wwwroot/web1
chmod -R 755 /home/wwwroot/web1

 

 

 

推荐软件:xshell5

 

ftp详细配置

http://www.youliaode.cn/archives/15/

 

posted @ 2017-03-15 01:20  monkey's  阅读(6578)  评论(0)    收藏  举报