ssh排错思路
telnet远程22端口refused
先netstat -utnlp 看一下22端口监听状态(一般都不在监听)
然后systemctl restart sshd
如果有报错,执行sshd -t 看一下报错信息
根据报错和自己服务器对比一下排查原因
When nothing seems to help, I go look at a stonecutter hammering away at his rock, perhaps a hundred times without as much as a crack showing in it. Yet at the hundred and first blow it will split in two, and I know it was not that blow that did it, but all that had gone before. -- Jacob Riis