---
title: "ssh客户端不操作自动断开"
author: "supben"
date: "2015-08-27T18:32:10Z"
tags: []
categories: ["操作系统"]
slug: "ssh"
draft: false
lastmod: "2015-08-27T18:32:10Z"
id: 2238499
url: "https://supben.iteye.com/blog/2238499"
---

vi  /etc/ssh/sshd\_config 

 

客户端不操作自动断开设置  
TCPKeepAlive yes  
ClientAliveInterval 180  
ClientAliveCountMax 20

service sshd restart