login about faq

Depending on the operating system and the SSH server running on the remote server side, the behavior of closing an SSH connection can be different when you run a remote command that starts a background process on the remote host.

This article covers the following servers and operating systems:

  • Tectia Server 6.3.5 and 6.4.2
  • OpenSSH server
  • Unix/Linux operating systems

asked May 21 '13 at 08:12

SSH%20KB's gravatar image

SSH KB ♦
509250247238

edited Jun 25 '13 at 10:19


Differences between Unix platforms running Tectia Server:

It is currently a known issue that Tectia Server behaves differently on Oracle Solaris and HP-UX as opposed to other Unix/Linux platforms.

The following behavior concerns Oracle Solaris (tested on version 10 on SPARC platform) and certain versions of HP-UX:

When you run via an SSH client a remote command that starts background processes on a host that runs Tectia Server, the SSH connection will hang until Enter is pressed. When Enter is pressed, the opened background process stays running on the remote host.

The same behavior on any other Unix/Linux platforms: When you run via an SSH client a remote command that starts background processes on a host that runs Tectia Server, the SSH connection will be terminated, and the background process stays running on the remote host.

Differences between Tectia Server and OpenSSH server:

Another known issue about to the same use case (running remote commands that open background processes on the remote Unix/Linux host) is related to the different behavior between Tectia Server and OpenSSH server.

It's acknowledged when a remote command initiates background processes on remote host running OpenSSH, the SSH connection will hang until the process ends in the background.

When a remote command initiates background processes on remote host running Tectia Server, Tectia Server behaves as follows:

  • The SSH connection will hang until Enter is pressed on the client side if the operating system on the remote host is Solaris or HP-UX. Note that the behavior may vary between the different versions of Solaris/HP-UX.

  • On other Unix/Linux platforms, the SSH connection will be terminated after the remote end has finished running the remote script/command, and the background process remains running on the remote host.

link

answered May 21 '13 at 08:18

SSH%20KB's gravatar image

SSH KB ♦
509250247238

edited Jun 24 '13 at 14:58

All above is true if remote command is launched without tty (-t option) or if the background process does not send anything to output. In case of sending output or using tty the background process will be stopped.

link

answered Jun 26 '13 at 13:07

SSH%20KB's gravatar image

SSH KB ♦
509250247238

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:

×24
×11
×10
×9
×3

Asked: May 21 '13 at 08:12

Seen: 11,799 times

Last updated: Jun 26 '13 at 13:07

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