File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -528,7 +528,7 @@ Compression = yes
528528- `RemoteForward 2001 server:143`:指定远程端口转发。
529529- `SendEnv COLOR`:SSH 客户端向服务器发送的环境变量名,多个环境变量之间使用空格分隔。环境变量的值从客户端当前环境中拷贝。
530530- `ServerAliveCountMax 3`:如果没有收到服务器的回应,客户端连续发送多少次`keepalive`信号,才断开连接。该项默认值为3。
531- - `ServerAliveInterval 300`:客户端建立连接后,如果在给定秒数内,没有收到服务器发来的消息,客户端向服务器发送`keepalive`消息。如果不希望客户端发送,这一项设为`0`。
531+ - `ServerAliveInterval 300`:客户端建立连接后,如果在给定秒数内,没有收到服务器发来的消息,客户端向服务器发送`keepalive`消息。如果不希望客户端发送,这一项设为`0`,即客户端不会主动断开连接 。
532532- `StrictHostKeyChecking yes`:`yes`表示严格检查,服务器公钥为未知或发生变化,则拒绝连接。`no`表示如果服务器公钥未知,则加入客户端公钥数据库,如果公钥发生变化,不改变客户端公钥数据库,输出一条警告,依然允许连接继续进行。`ask`(默认值)表示询问用户是否继续进行。
533533- `TCPKeepAlive yes`:客户端是否定期向服务器发送`keepalive`信息。
534534- `User userName`:指定远程登录的账户名。
Original file line number Diff line number Diff line change @@ -180,11 +180,11 @@ HostKey /usr/local/ssh/my_old_ssh1_key
180180
181181** ClientAliveCountMax**
182182
183- ` ClientAliveCountMax ` 指定建立连接后,客户端失去响应时,服务器尝试连接的次数 (` ClientAliveCountMax 8 ` )。
183+ ` ClientAliveCountMax ` 指定建立连接后,客户端失去响应时(超过指定时间,没有收到任何消息),服务器尝试连接(发送消息)的次数 (` ClientAliveCountMax 8 ` )。
184184
185185** ClientAliveInterval**
186186
187- ` ClientAliveInterval ` 指定允许客户端发呆的时间,单位为秒(` ClientAliveInterval 180 ` )。如果这段时间里面,客户端没有发送任何信号,SSH 连接将关闭 。
187+ ` ClientAliveInterval ` 指定允许客户端发呆的时间,单位为秒(` ClientAliveInterval 180 ` )。超过这个时间,服务器将发送消息以请求客户端的响应。如果为 ` 0 ` ,表示不向客户端发送消息,即连接不会自动断开 。
188188
189189** Compression**
190190
@@ -318,7 +318,7 @@ SSH 1 版本专用,指定日志只输出致命的错误信息(`QuietMode yes
318318
319319** TCPKeepAlive**
320320
321- ` TCPKeepAlive ` 指定打开 sshd 跟客户端 TCP 连接的 keepalive 参数 (` TCPKeepAlive yes ` )。
321+ ` TCPKeepAlive ` 指定系统是否应向客户端发送 TCP keepalive 消息 (` TCPKeepAlive yes ` )。
322322
323323** UseDNS**
324324
You can’t perform that action at this time.
0 commit comments