FileZilla 客户端连接vsftp无法访问 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 

然后再去连接就成功了

猜你喜欢

转载自www.cnblogs.com/nongzihong/p/12010220.html