FG
💻 Software

Why does my remote process still run after killing an ssh session?

Fresh5 days ago
Mar 15, 202612004 views
Confidence Score0%
0%

Problem

I'm tailing a remote logfile by running this command in a local shell: When I ctrl-c out of this command, it seems that the ctrl-c kills the local ssh process and leaves my tail running on the remote machine. I was under the impression that breaking the connection would send a hangup signal (since …

Error Output

ssh remotemachine tail -100f /path/to/error_file

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Why does my remote process still run after killing an ssh session?

Low Risk

This behaviour stems from the lack of a controlling terminal for the running process. When the remote process does not have a controlling terminal, the remote ssh process handling your session is unable to kill the command, which is left hanging in …

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment