bash
sudo dnf install vim #安装VIM
vim /etc/ssh/sshd_config #修改文件如图

bash
systemctl restart sshd #重启服务
再用SSH工具连接成功