Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
Asyraf
New Contributor II

SSH Session Time Out

Hi,

 

We having an issues where the SSH keep timeout when idle. This happen only for 1 IP Segment / VLAN.

 

Not sure if this related to the FW since we have multiple switch in between.

 

User -> Floor Switch -> CS Switch -> FW -> Servers

 

When login and idle for 5s, the session close. In the Fortigate i try config session-ttl based on the FG forum, but still same :

onfig system session-ttl
         config port
             edit 22
                 set protocol 6
                 set timeout never
                 set start-port 22
                 set end-port 22
             next
         end
 end

 Anyone experience on this ?

TQ

2 REPLIES 2
AEK
SuperUser
SuperUser

Hi @Asyraf 

This 5s timeout is probably configured ad ssh client level or ssh server level.

The session default ttl in FG is 1h if I'm not wrong.

AEK
AEK
AlexC-FTNT
Staff
Staff

You can run a packet capture to prove it. Filter for ssh port and the test IP - 5s is not a lot to wait. You will see who sends the FIN packet. Also, you can check immediately after if the session is still kept in FG (it should be kept for a max 2s after FIN - so you should be fast)


- Toss a 'Like' to your fixxer, oh Valley of Plenty! and chose the solution, too00oo -
Labels
Top Kudoed Authors