version 1.350, 2023/07/28 05:42:36 |
version 1.351, 2024/01/09 22:19:00 |
|
|
.Dq type=interval |
.Dq type=interval |
pairs separated by whitespace, where the |
pairs separated by whitespace, where the |
.Dq type |
.Dq type |
must be a channel type name (as described in the table below), optionally |
must be the special keyword |
containing wildcard characters. |
.Dq global |
|
or a channel type name from the list below, optionally containing |
|
wildcard characters. |
.Pp |
.Pp |
The timeout value |
The timeout value |
.Dq interval |
.Dq interval |
|
|
.Sx TIME FORMATS |
.Sx TIME FORMATS |
section. |
section. |
For example, |
For example, |
.Dq session:*=5m |
.Dq session=5m |
would cause all sessions to terminate after five minutes of inactivity. |
would cause interactive sessions to terminate after five minutes of |
|
inactivity. |
Specifying a zero value disables the inactivity timeout. |
Specifying a zero value disables the inactivity timeout. |
.Pp |
.Pp |
The available channel types include: |
The special timeout |
|
.Dq global |
|
Applies to all active channels, taken together. |
|
Traffic on any active channel will reset the timeout, but when the timeout |
|
expires then all open channels will be closed. |
|
Note that this global timeout is not matched by wildcards and must be |
|
specified explicitly. |
|
.Pp |
|
The available channel type names include: |
.Bl -tag -width Ds |
.Bl -tag -width Ds |
.It Cm agent-connection |
.It Cm agent-connection |
Open connections to |
Open connections to |
|
|
.Xr ssh 1 |
.Xr ssh 1 |
remote forwarding, i.e.\& |
remote forwarding, i.e.\& |
.Cm RemoteForward . |
.Cm RemoteForward . |
.It Cm session:command |
.It Cm session |
Command execution sessions. |
The interactive main session, including shell session, command execution, |
.It Cm session:shell |
.Xr scp 1 , |
Interactive shell sessions. |
|
.It Cm session:subsystem:... |
|
Subsystem sessions, e.g. for |
|
.Xr sftp 1 , |
.Xr sftp 1 , |
which could be identified as |
etc. |
.Cm session:subsystem:sftp . |
.It Cm tun-connection |
|
Open |
|
.Cm TunnelForward |
|
connections. |
.It Cm x11-connection |
.It Cm x11-connection |
Open X11 forwarding sessions. |
Open X11 forwarding sessions. |
.El |
.El |
|
|
requesting another channel of the same type. |
requesting another channel of the same type. |
In particular, expiring an inactive forwarding session does not prevent |
In particular, expiring an inactive forwarding session does not prevent |
another identical forwarding from being subsequently created. |
another identical forwarding from being subsequently created. |
See also |
|
.Cm UnusedConnectionTimeout , |
|
which may be used in conjunction with this option. |
|
.Pp |
.Pp |
The default is not to expire channels of any type for inactivity. |
The default is not to expire channels of any type for inactivity. |
.It Cm ChrootDirectory |
.It Cm ChrootDirectory |