ubuntu16.04 ssh连接出现connect to host localhost port 22: Connection refused 解决办法semanage port -l | grep sshvi /etc/ssh/sshd_config/usr/sbin/sshd -Tvi /etc/ssh/sshd_config
首先我报错是因为改动了ssh的系统环境配置而导致的web端监听不响应,进而展开了一系列的迷茫操作。ubuntu16.04启动SSH服务报:Job for ssh.service failed because the control process exited with error codesee systemctl status ssh.service and journalctl -xe for details.然后按照提示输入: systemctl status sshd.service表