xshell无法连接,但是显示运行正常,怎么搞?
xshell无法连接,但是显示运行正常,怎么搞?
之前连接没问题,因为配置
useradd sftpuser1
usermod -s /usr/sbin/nologin sftpuser1
usermod -d /data/sftpuser1 sftpuser1
vi /etc/ssh/sshd_config
Subsystem sftp internal_sftp
Match User sftpuser1
ForceCommand internal-sftp
ChrootDirectory /data/sftpuser1/
systemctl restart sshd.service 重启失败
导致现在无法连接了,但是还是显示正常运行的,服务器上的网站也可以正常运行。
阿里云的22端口也是开的,服务器已经重启过了,就是xshell无法连接怎么搞?