• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

The Geek Diary

CONCEPTS | BASICS | HOWTO

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • Linux Services
    • VCS
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
    • Data Guard
  • DevOps
    • Docker
    • Shell Scripting
  • Interview Questions
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

Solaris : How to setup session idle timeout for ssh

By admin

Question: Is it possible to setup a timeout for idle sessions in Solaris 10 ssh to automatically close an ssh session after a specified idle time?

Answer:

You can setup an idle timer on the ssh server side and this would be active for all users. There is no option to control this for individual users or on the client side.

If you want to enable such an idle timeout then you have to edit the file /etc/ssh/sshd_config and set the value of ClientAliveCountMax to 0 and the value of ClientAliveInterval to the desired timeout in seconds.

An example setup to configure a 30 minutes idle timeout would be :

# vi /etc/ssh/sshd_config
.....
ClientAliveCountMax 0
ClientAliveInterval 1800
.....

Note that the setting of KeepAlive should be the default (yes) to activate these timeouts. The ssh service needs to be restarted to activate the new setting:

# svcadm restart ssh

Filed Under: Solaris

Some more articles you might also be interested in …

  1. How to set boot-device with luxadm command in Solaris
  2. Solaris – Changing from iSCSI Static Discovery to SendTargets Discovery
  3. Solaris : How to capture failed login attempts from tty logins (telnet, rlogin, and terminal)
  4. Solaris Zones : How To Change The Number Of CPUs Using Dynamic Resource Pools
  5. How to enable XDMCP in GNOME Display Manager (gdm) for Solaris 10,11
  6. Understanding the sysconfig utility in Solaris 11
  7. Beginners Guide to Configuring network virtualization features in Solaris 11
  8. Solaris : How To Create and Mount NFS share that is Restricted to Certain Hosts
  9. Script to label multiple disks in Solaris
  10. How to configure additional IP address on the same interface in solaris zones

You May Also Like

Primary Sidebar

Recent Posts

  • How to disable ICMP redirects on CentOS/RHEL
  • What are Oracle Key Vault Roles
  • What Is Oracle Key Vault
  • Auditing with Oracle Database Vault Reports
  • Archives
  • Contact Us
  • Copyright

© 2021 · The Geek Diary