ChannelTimeout setting

Damien Miller djm at mindrot.org
Fri Mar 15 09:43:22 AEDT 2024


On Thu, 14 Mar 2024, David wrote:

> Hi,
> 
> I am trying to understand the ChannelTimeout option and whether it
> should work as I expect.
> 
> I intended to use it to terminate inactive sessions, e.g. where no
> keystrokes / output is sent or SFTP sessions with no commands or data
> transfer. For testing I am using OpenSSH_9.6p1 Debian-5, OpenSSL 3.1.5
> 30 Jan 2024 both as the server and client.
> 
> I set the following options in sshd_config:
> 
> ChannelTimeout agent-connection=60 direct-tcpip=60
> direct-streamlocal at openssh.com=60 forwarded-tcpip=60
> forwarded-streamlocal at openssh.com=60 session=60 tun-connection=60
> x11-connection=60
> UnusedConnectionTimeout 1m

try 'session:*=60'


More information about the openssh-unix-dev mailing list