So I'm trying to configure the SSH service to disconnect an idle client automatically after a certain amount of time.
I added the following to the "Extra options" textfield:
Saved and disabled and re-enabled the service (also tried manually from command line: sudo service ssh restart) but doesn't seem to work. What am I forgetting/doing wrong ... ?
Output from "w" through another ssh session:
Code
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
xxxx pts/0 mbp.lan 21:12 1.00s 0.20s 0.00s w
xxxx pts/1 kodi.lan 21:25 4:42 0.08s 0.08s -bash
Session from kodi.lan doesn't disconnect after 90 seconds. I am not using any ServerAliveInterval option on the client.
My sshd_config file is as follows:
Code
Protocol 2
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
UsePrivilegeSeparation yes
KeyRegenerationInterval 3600
ServerKeyBits 768
SyslogFacility AUTH
LogLevel INFO
LoginGraceTime 120
StrictModes yes
RSAAuthentication yes
PubkeyAuthentication yes
IgnoreRhosts yes
RhostsRSAAuthentication no
HostbasedAuthentication no
PermitEmptyPasswords no
ChallengeResponseAuthentication no
X11Forwarding yes
X11DisplayOffset 10
PrintMotd no
PrintLastLog yes
TCPKeepAlive yes
AcceptEnv LANG LC_*
Subsystem sftp /usr/lib/openssh/sftp-server
UsePAM yes
AllowGroups root ssh
AddressFamily any
Port 22
PermitRootLogin no
AllowTcpForwarding no
Compression no
PasswordAuthentication no
AuthorizedKeysFile /var/lib/openmediavault/ssh/authorized_keys/%u
PubkeyAuthentication yes
Banner /etc/ssh/banner
ClientAliveInterval 30
ClientAliveCountMax 3
Alles anzeigen