SFTP远程连接出现Ensure the remote shell produces no output for non-interactive session

181 阅读1分钟

问题描述

SFTT连接服务器账号密码正确,但是出现Ensure the remote shell produces no output for non-interactive sessions问题

image.png

解决办法

  1. 修改/etc/ssh/sshd_config配置文件,添加以下内容
Match Group isms_sftp

        ChrootDirectory /appslog/ftp_manage/external/%u

        ForceCommand  internal-sftp

        AllowTcpForwarding no

        X11Forwarding no
  1. 重启ssh服务
    systemctl restart sshd