首先在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 

然后再去连接就成功了

相关文章:

  • 2021-11-21
  • 2021-06-24
  • 2022-12-23
  • 2022-12-23
  • 2022-01-11
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-01
  • 2022-12-23
  • 2021-06-29
  • 2022-12-23
  • 2021-12-05
  • 2021-04-19
相关资源
相似解决方案