The Adtran community holiday season is starting next week! The holiday period will span from December 21, 2024 to January 6, 2025. During this time, responses to feedback form submissions may be delayed. If you are encountering product issues, you can reach out to Adtran support at any time.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
jims
New Contributor III

Preventing SSH from timing out?

Hi.  I picked up a pair of 2nd Gen 908e's and I'm trying to figure out how to prevent my SSH sessions from timing out.  According to the AOS manual, the line-timeout command should modify it but they drop after 4 minutes of inactivity.  This is my SSH config;  

line ssh 0 4

  login local-userlist

  line-timeout 1440

  no shutdown

I tried adding a ServerAliveInterval to my SSH client but it didn't help.  Am I missing another setting?

Thanks,

Jim

Tags (3)
0 Kudos
5 Replies
jayh
Honored Contributor
Honored Contributor

Re: Preventing SSH from timing out?

Look for an intermediate firewall between your workstation and the unit with a short TCP session timeout setting. 

jims
New Contributor III

Re: Preventing SSH from timing out?

I think you're on to something, Jay.  If I start at the workstation mentioned above, but SSH into an Asterisk server on the same subnet as the TA908e and THEN SSH into the TA908e the connection doesn't drop.  Something with my (intranet) router doesn't agree with Adtran's SSH server.

Thanks.

Anonymous
Not applicable

Re: Preventing SSH from timing out?

Jim,

I went ahead and flagged this post as "Assumed Answered".  If the response on this thread assisted you, please mark it as Correct or Helpful as the case may be with the applicable buttons.  This will make it visible and help other members of the community find solutions more easily.  If you still need assistance, I would be more than happy to continue working with you on this - just let me know in a reply.

Thanks!

David

Anonymous
Not applicable

Re: Preventing SSH from timing out?

I will jump in here because I had the same problem and could not find an answer that worked.  Setting the line-timeout parameter worked fine for any value under 10 minutes.  Above that it simply did not work and the session was terminated.

It turns out that if you have the firewall enabled there is another parameter that terminates sessions at 10 minutes.  It is called 'ip policy-timeout'.  What you need to do is set it to whatever you want (in addition to setting the line-timeout value).

ip policy-timeout [tcp | udp] <port> <timeout>

So it would look like:

ip policy-timeout tcp 22 28800

Its in seconds so 28800 secs = 8 hours.

Hope this helps somebody else.

jims
New Contributor III

Re: Preventing SSH from timing out?

Thanks Ricvil, I'll try that.