login about faq

If I get a SSH connection, can I assume this one will be maintained even if there is no data being sent? Or should I expect that it will become disconnected?

asked Jul 11 '12 at 09:26

chilkat's gravatar image

chilkat ♦♦

It depends on the behavior of each particular server. Some may disconnect after a connection has been idle too long (just like any server might do, such as for FTP, HTTP, POP3, IMAP, etc.)

Most protocols have a "NOOP" ("no operation") message for the purpose of keeping the connection from being idle. With SSH, it's the "SendIgnore" method that can be called to send an "ignore" message, which is SSH's version of the NOOP. You could periodically call SendIgnore to try to prevent the server from closing an idle connection.


answered Jul 11 '12 at 09:26

chilkat's gravatar image

chilkat ♦♦

Your answer
toggle preview

Follow this question

By Email:

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



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



Asked: Jul 11 '12 at 09:26

Seen: 1,869 times

Last updated: Jul 11 '12 at 09:26

powered by OSQA