You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "raajeive (via GitHub)" <gi...@apache.org> on 2025/04/11 03:09:46 UTC
[I] Add maxCommandExecutionTimeout to session.executeRemoteCommand [mina-sshd]
raajeive opened a new issue, #725:
URL: https://github.com/apache/mina-sshd/issues/725
### Description
Introduce a maxCommandExecutionTimeout parameter to the session.executeRemoteCommand method in Apache MINA SSHD. This is essential to prevent command executions from hanging indefinitely due to unresponsive commands or misbehaving remote servers.
### Motivation
In our environment, we need to SSH into a large number of servers and execute commands. Occasionally, some servers are in a bad state, causing the command execution to hang indefinitely. This not only blocks the current session but also delays subsequent SSH operations to other servers.
To work around this, we currently have to create a custom execution channel and manually manage timeouts. Providing native support for a maxCommandExecutionTimeout within executeRemoteCommand would greatly simplify this process and improve robustness when dealing with unreliable targets.
### Alternatives considered
_No response_
### Additional context
_No response_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
For additional commands, e-mail: dev-help@mina.apache.org
Re: [I] Add maxCommandExecutionTimeout to session.executeRemoteCommand [mina-sshd]
Posted by "tomaswolf (via GitHub)" <gi...@apache.org>.
tomaswolf closed issue #725: Add maxCommandExecutionTimeout to session.executeRemoteCommand
URL: https://github.com/apache/mina-sshd/issues/725
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
For additional commands, e-mail: dev-help@mina.apache.org
Re: [I] Add maxCommandExecutionTimeout to session.executeRemoteCommand [mina-sshd]
Posted by "raajeive (via GitHub)" <gi...@apache.org>.
raajeive commented on issue #725:
URL: https://github.com/apache/mina-sshd/issues/725#issuecomment-2795852100
I made the changes in the library to accept the commandTimeoutMillis in the executeRemoteCommand function.
https://github.com/apache/mina-sshd/pull/726
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
For additional commands, e-mail: dev-help@mina.apache.org