Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to passthru kwargs on ssh.__getattr__ convenience function to fix SSH motd problems #2517

Merged
merged 6 commits into from
Jan 21, 2025

Conversation

peace-maker
Copy link
Member

Instead of only passing the command arguments themselves to ssh.system when using ssh.somecommand('args'), allow to specify keyword arguments as well ssh.somecommand('args', tty=False). This can be used to avoid allocating an interactive channel with a tty when executing commands this way. This avoids receiving a motd in front of the command output.

Instead of only passing the command arguments themselves to `ssh.system` when using `ssh.somecommand('args')`, allow to specify keyword arguments as well `ssh.somecommand('args', tty=False)`.
If the remote server is printing some motd agressively, this could lead to interpreting the motd instead of the requested output.
@peace-maker peace-maker merged commit cff58e1 into Gallopsled:dev Jan 21, 2025
9 of 10 checks passed
@peace-maker peace-maker deleted the ssh_getattr_kwargs branch January 21, 2025 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant