Junos OS

Expand all | Collapse all

SSH Timeout For Connections

  • 1.  SSH Timeout For Connections

    Posted 09-25-2017 04:41

    How can I increase the SSH timeout for incoming connections on vSRX switch ?
    Where do see the ssh logs for incoming SSH connections ?

  • 2.  RE: SSH Timeout For Connections

    Posted 09-25-2017 20:22
    You can configure below , with below the idle time becomes 100 seconds, increase the values as per your requirement.

    set system services ssh client-alive-count-max 10
    set system services ssh client-alive-interval 10

    Regarding logs, you can config below

    set system syslog file System-login authorization any

  • 3.  RE: SSH Timeout For Connections

    Posted 09-26-2017 06:41


    I configured the command and see the below logs in file - /var/log/messages. But I am not able to make out the reason why sshd exited.
    Is there a way to can capture some logs which can point towards termination reason (increasig the debug level for the sshd logs).

    Sep 26 08:12:22  vSRX_1 mgd[74167]: UI_LOGIN_EVENT: User 'root' login, class 'super-user' [74167], ssh-connection ' 5489
    2 22', client-mode 'cli'
    Sep 26 08:19:14  vSRX_1 inetd[1719]: /usr/sbin/sshd[75770]: exited, status 1