login about faq
1
4

I'm taking connections with Tectia Client through a firewall. The firewall is configured to drop connections when they have been idle for 10 minutes. I'd like to leave my idle sessions open for longer times. Is there any way prevent the connections getting closed from Tecia Client?

I don't have access to the firewall so I cannot reconfigure it. I also don't have access to the server I'm connecting to, so the solution would have to be purely in the Client.

asked Oct 06 '09 at 12:11

Ville%20Laurikari's gravatar image

Ville Laurikari ♦
131129

edited Oct 13 '09 at 10:32

Sami%20Lehtinen's gravatar image

Sami Lehtinen ♦
141128


For this very purpose, you can configure the client to send keep-alive messages within the connection.

In the command line clients, use the --keep-alive option:

--keep-alive=VALUE

  Defines how often keep-alive messages are sent to the Secure Shell server.
  Enter the value as seconds.  The default value is 0, meaning that keep-alive
  messages are disabled.

For permanent effect, you can enable keep-alives in the configuration. From the GUI, select General → Default Connection → Server, and set the "Keepalive interval" setting to a nonzero value. The setting is also available as a profile specific setting in the Server tab when configuring a profile.

The keep-alive messages are sent within the ssh connection as special "no-op" packets which the server ignores. They generate a minimal amount of traffic in the TCP connection so that firewalls no longer treat the connection as idle.

link

answered Oct 06 '09 at 12:22

Ville%20Laurikari's gravatar image

Ville Laurikari ♦
131129

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×60
×3
×2

Asked: Oct 06 '09 at 12:11

Seen: 28,904 times

Last updated: Oct 13 '09 at 10:32

All user contributed content licensed under the cc-by-sa license.
Powered by OSQA.