Title: send signals to process in through channel · Issue #221 · ParallelSSH/ssh2-python · GitHub
Open Graph Title: send signals to process in through channel · Issue #221 · ParallelSSH/ssh2-python
X Title: send signals to process in through channel · Issue #221 · ParallelSSH/ssh2-python
Description: Hello an thanks for that library Is it possible in ssh2-python to the current process running in a channel, like it is in the ssh specs ? for instance on paramiko you basically can't but you can always hack it with the private API: from ...
Open Graph Description: Hello an thanks for that library Is it possible in ssh2-python to the current process running in a channel, like it is in the ssh specs ? for instance on paramiko you basically can't but you can al...
X Description: Hello an thanks for that library Is it possible in ssh2-python to the current process running in a channel, like it is in the ssh specs ? for instance on paramiko you basically can't but you ca...
Opengraph URL: https://github.com/ParallelSSH/ssh2-python/issues/221
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"send signals to process in through channel","articleBody":"Hello an thanks for that library\nIs it possible in `ssh2-python` to the current process running in a channel, like it is in the ssh specs ?\n\nfor instance on paramiko you basically can't but you can always hack it with the private API:\n```python\nfrom paramiko import Message\nfrom paramiko.common import cMSG_CHANNEL_REQUEST\nfrom signal import Signals\n\n# trigger termination with a standard openssh packet (since v7.6) but using the private API of paramiko because it doesn't natively implements it\n# spec: https://www.ietf.org/rfc/rfc4254.txt\nmessage = Message()\nmessage.add_byte(cMSG_CHANNEL_REQUEST)\nmessage.add_int(channel.remote_chanid)\nmessage.add_string(\"signal\")\nmessage.add_boolean(False)\nmessage.add_string(Signals.SIGTERM.name[3:])\nclient.get_transport()._send_user_message(message)\n```\n\nIt would greatly help me since i'm using SIGTERM and SIGINT signals to stop the continuously running processes i'm starting over ssh","author":{"url":"https://github.com/jimy-byerley","@type":"Person","name":"jimy-byerley"},"datePublished":"2025-08-12T13:42:14.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/221/ssh2-python/issues/221"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ad1aeab6-5a99-5c19-a193-eb2862b56cfb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D2A0:29E881:60EAA4:87005D:696A4BB5 |
| html-safe-nonce | accee30017333bc6354f79588cc88a2bb7d47782377c1cdcac585cf8189eb4d8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMkEwOjI5RTg4MTo2MEVBQTQ6ODcwMDVEOjY5NkE0QkI1IiwidmlzaXRvcl9pZCI6IjgyNjgwOTkyMjk1NTY4MjA5MTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c095f1182f4a3035aae1fcd790bbc39191e39d3a1d6d44fd28f2ecbb2b5270ac |
| hovercard-subject-tag | issue:3314332501 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/ParallelSSH/ssh2-python/221/issue_layout |
| twitter:image | https://opengraph.githubassets.com/031e24669fed9b40031ba79c3c4b87acffd7ade42f190149561be455ae021003/ParallelSSH/ssh2-python/issues/221 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/031e24669fed9b40031ba79c3c4b87acffd7ade42f190149561be455ae021003/ParallelSSH/ssh2-python/issues/221 |
| og:image:alt | Hello an thanks for that library Is it possible in ssh2-python to the current process running in a channel, like it is in the ssh specs ? for instance on paramiko you basically can't but you can al... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jimy-byerley |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3f871c8e07f0ae1886fa8dac284166d28b09ad5bada6476fc10b674e489788ef |
| turbo-cache-control | no-preview |
| go-import | github.com/ParallelSSH/ssh2-python git https://github.com/ParallelSSH/ssh2-python.git |
| octolytics-dimension-user_id | 22918200 |
| octolytics-dimension-user_login | ParallelSSH |
| octolytics-dimension-repository_id | 98586974 |
| octolytics-dimension-repository_nwo | ParallelSSH/ssh2-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 98586974 |
| octolytics-dimension-repository_network_root_nwo | ParallelSSH/ssh2-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 63c426b30d262aba269ef14c40e3c817b384cd61 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width