Junos
Highlighted
Junos

J4350: TCP timeout for SSH

‎11-23-2009 09:49 PM

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

4 REPLIES 4
Highlighted
Junos

Re: J4350: TCP timeout for SSH

‎11-24-2009 10:20 AM

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

_____________________________________________________________________

Please ask Your Juniper account team about Juniper Professional Services offerings.
Juniper PS can design, test & build the network/part of the network as per Your requirements

+++++++++++++++++++++++++++++++++++++++++++++

Accept as Solution = cool !
Accept as Solution+Kudo = You are a Star !
Highlighted
Junos

Re: J4350: TCP timeout for SSH

‎12-02-2009 07:33 AM

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

Highlighted
Junos
Solution
Accepted by topic author pang
‎08-26-2015 01:27 AM

Re: J4350: TCP timeout for SSH

‎12-03-2009 12:45 PM

I think I now understand your requirement. Please have a look here:

http://www.juniper.net/techpubs/software/junos-security/junos-security10.0/junos-security-swconfig-s...

http://www.juniper.net/techpubs/software/junos-security/junos-security10.0/junos-security-swconfig-s...

HTH

Rgds

Alex

_____________________________________________________________________

Please ask Your Juniper account team about Juniper Professional Services offerings.
Juniper PS can design, test & build the network/part of the network as per Your requirements

+++++++++++++++++++++++++++++++++++++++++++++

Accept as Solution = cool !
Accept as Solution+Kudo = You are a Star !
Highlighted
Junos

Re: J4350: TCP timeout for SSH

‎12-13-2009 01:48 AM

It works. Thanks.

The one I need to edit is junos-ssh.

Pang