Junos OS

last person joined: 19 hours ago 

Ask questions and share experiences about Junos OS.
  • 1.  J4350: TCP timeout for SSH

    Posted 11-23-2009 21:50

    Hello,

       I have just bought a J4350 and I have been able to configure the basic setting. However, there is one small default that I want to change: default TCP timeout for SSH. I have tried to search my ebooks and Internet, but I still can't set it correctly. Could anyone help?

     

      I want to change default TCP timeout for SSH from 30 minutes to 2 hours.

     

    Thanks

    Pang



  • 2.  RE: J4350: TCP timeout for SSH

    Posted 11-24-2009 10:20

    Hi there,

    Do you mean "idle-timeout for any user logged in via SSH"?

    If yes then here is the code

     

    set system login class test1 idle-timeout 120
    set system login class test1 permissions <permissions>
    set system login user test1 full-name TestUser
    set system login user test1 class test1

     

    The disadvantage is that this timeout will apply not only to SSH but to telnet and console too.

    The alternative solution could be an event-script enforcing a custom idle-timeout for SSH connections.

    Rgds

    Alex



  • 3.  RE: J4350: TCP timeout for SSH

    Posted 12-02-2009 07:33

    Sorry for late reply. What I mean is:

    when I connected from my home desktop to my server (behind the J4350) via SSH and I left the SSH connection idle for 30 or more minutes, the TCP connection will be cut.

    What I want is to change the idle time or disable this timeout features. (at least for port 22)

     

    Thanks

    Pang



  • 4.  RE: J4350: TCP timeout for SSH
    Best Answer



  • 5.  RE: J4350: TCP timeout for SSH

    Posted 12-13-2009 01:48

    It works. Thanks.

    The one I need to edit is junos-ssh.

    Pang