Cannot exit (Ctrl+C) from sshuttle

Bug #1980876 reported by Martin
56
This bug affects 11 people
Affects Status Importance Assigned to Milestone
sshuttle (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

After connecting, I can't exit with Ctrl+C (it just prints ^C to the terminal). I've tried Tilix, gnome-terminal and xterm. Workaround is Ctrl+Z and then `kill %1`.

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: sshuttle 1.0.5-1ubuntu4
ProcVersionSignature: Ubuntu 5.15.0-40.43-generic 5.15.35
Uname: Linux 5.15.0-40-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: GNOME
Date: Wed Jul 6 22:30:15 2022
InstallationDate: Installed on 2022-07-03 (2 days ago)
InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - Release amd64 (20220419)
PackageArchitecture: all
SourcePackage: sshuttle
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Martin (uzivatelmp) wrote :
Revision history for this message
Paul Goins (vultaire) wrote :

I've also hit this. This worked fine in Bionic and Focal, but since upgrading to Jammy, I hit this consistently.

Revision history for this message
Martin (uzivatelmp) wrote :

I've tried to unapply "gracefully-exit-ctrl-c-use-pty.patch" (which has a suspicious name), but that didn't help. Ctrl+C still just prints ^C to the terminal.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in sshuttle (Ubuntu):
status: New → Confirmed
Revision history for this message
Marcus Boden (marcusboden) wrote :

I tried the latest version by installing it via pip. That works. Therefore I thought it was fixed by this: https://github.com/sshuttle/sshuttle/pull/712. But this patch has been backported, so apparently there is something else that stops the SIGINT signal from going through.

Since this is caused by `use_pty` in the sudoers config, one workaround is to disable it. This can be done for just sshuttle by adding
Defaults!SSHUTTLEF17 !use_pty
to `/etc/sudoers.d/sshuttle`. You will have to replace `SSHUTTLEF17` with the right alias. Use at your own risk, as the use_pty is a security feature...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.