Repository navigation
Conversation
bc7225c to
047ccf4
Compare
|
@bitprophet any update on this? As people are moving away from older OpenSSH versions now, it would be a very nice-to-have. The PR is relatively simple. |
|
Note to self: should this ever be pursued further, exit code fetching would also have to be improved, see #823 |
|
Any reason on why this cannot be merged? I ended up implementing this myself. And, when I looked through the pull requests prior to creating my own, I found this one. Great work, @MrMino. The only thing I can think to add would be a translation between the Python import signal
class Channel(...):
...
def send_signal(self, name):
if type(name) is signal.Signals:
name = signal.name[3:]
if type(name) is not str:
raise ValueError('%s: Unsupported signal name/type' % (name,)) |
|
This PR only includes the code change; if augmented with docs and tests, that would facilitate a potential merge. |
|
@baskinn I thought the docs are generated via autodoc? I'll add some tests today / tomorrow. Edit: looks like they are automated in the reference section, but I'll make sure to test it out too, and in case it doesn't show up - add it too. |
|
@MrMino I would be happy to help in any capacity. Please advise/delegate if you'd like a teammate on this. |
|
@MrMino Oh, right, yeah -- the docstring should do it. Sorry! |
|
@bitprophet: Is there a process to get this merged? I've double checked that this commit can be re-based on top of the main branch. What do you need me to do to get this merged? |
|
@rustyscottweber Just needs me to get through the milestones until I reach the one this is in, sadly. However after glancing at the diff this is pretty darn straightforward so I'll bump it to an earlier one. |
|
I still have my fingers crossed this will be merged one day! |
|
Coming back to this after the mention in #1475. Is this something that could easily have tests added? Also, this would need an entry in |
|
@bskinn @bitprophet I'd like to revive this. If anyone can point me to an existing example of how the tests for low-level protocol code like this should look like, I'd be happy to add them. If you are thinking about an end-to-end tests with a stub Paramiko SSH server, the server-side code would need to be implemented first, which I believe is a bit higher toll. |
047ccf4 to
9d709b6
Compare
|
@greezybacon Integrating the The signals exposed in stdlib are platform dependent. By supporting these enums here, we would be inadvertently inviting misuse by code that only works when the platforms of the server and the client match. |
|
This code is now happily running in a larger environment. I also tested it myself on one of OpenSSH versions from 2023. |
|
@MrMino, I'll bump this up to bitprophet again; he may think that specific tests aren't needed here, in which case I would think this is close to merge-able. Please add an initial draft of an entry to Also, please expand the docstring of the new function -- at minimum, replicate (with suitable edits if appropriate) the comment in the up-top PR description, including the link to the RFC. Additionally, if there are any context-specific reasons for the specific calls to the Thanks! |
9d709b6 to
c2f0964
Compare
|
@bskinn done.
There are none. It is taken straight from the RFC. |
c2f0964 to
2ef0807
Compare
|
(force pushed again to fix a linter warning) |
|
@bskinn Do you see anything else to add here? Can we get the "Needs *" labels detached from this PR? |
|
Sorry for the delay, @MrMino -- yes, I think CHANGELOG/docs are good now, I've pulled that label. I'm going to leave the 'needs tests' on for now as a reminder. bitprophet has continued to be tight on OSS time lately, but I've got this PR on the list for him to consider the next time he has opportunity. |
Implemented as per section 6.9 of RFC 4254 ("The Secure Shell (SSH)
Connection Protocol"). Support for this request was added in OpenSSH
7.9. Support in other implementations may vary.
2ef0807 to
a26f1ac
Compare
|
FTR test failures are unrelated, happened after a rebase. The following MR adds handlers for |
Implemented as per section 6.9 of RFC 4254 ("The Secure Shell (SSH)
Connection Protocol"). Support for this request was added in OpenSSH
7.9. Support in other implementations may vary.