{"id":101139,"date":"2024-08-10T07:06:10","date_gmt":"2024-08-09T23:06:10","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=101139"},"modified":"2024-08-10T07:06:10","modified_gmt":"2024-08-09T23:06:10","slug":"connection-timed-out","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/connection-timed-out.html","title":{"rendered":"Centos 7 SSH\u8fde\u63a5\u8d85\u65f6\u81ea\u52a8\u65ad\u5f00\u89e3\u51b3\u65b9\u6848"},"content":{"rendered":"
<\/p>\n
\u6700\u8fd1\u5728Centos 7 \u4e0a\u5b89\u88c5\u8f6f\u4ef6\uff0c\u4e00\u4f1a\u4e0d\u770b\u5c31\u81ea\u52a8\u65ad\u5f00\uff0c\u4e5f\u4e0d\u77e5\u9053\u8f6f\u4ef6\u7684\u5b89\u88c5\u8fdb\u5ea6\u5982\u4f55\uff0c\u4e00\u6c14\u4e4b\u4e0b\u6211\u5c31\u76f4\u63a5\u6539sshd_config\u6587\u4ef6\uff0c\u77ac\u95f4\u5fc3\u60c5\u597d\u591a\u4e86\u3002<\/p>\n
1.\u7f16\u8f91sshd\u914d\u7f6e\u6587\u4ef6<\/p>\n
\r\n # vi \/etc\/ssh\/sshd_config\r\n\r\n \u627e\u5230\r\n\r\n #ClientAliveInterval 0\r\n #ClientAliveCountMax 3\r\n\r\n \u4fee\u6539\u4e3a\r\n\r\n ClientAliveInterval 60\r\n ClientAliveCountMax 3\r\n<\/pre>\n2.\u91cd\u542fsshd\u670d\u52a1<\/p>\n
\r\n # systemctl restart sshd\r\n<\/pre>\n\u8fd9\u6837\u8fde\u63a5centos7\u957f\u65f6\u95f4\u4e0d\u64cd\u4f5c\u4e5f\u4e0d\u4f1a\u8fde\u63a5\u8d85\u65f6\u4e2d\u65ad\u4e86\u3002<\/p>\n
\n\u539f\u6587\u6765\u81ea\uff1ahttps:\/\/renwole.com\/archives\/310<\/a><\/p>\n