darkoperator / darkoperator/Posh-SSH
Invoke-SSHCommand always timesouts with Exception
Nobody has claimed this yet.
- Dominant language
- PowerShell
- Stars
- 1.1k
- Forks
- 222
- PR merge metrics
- No merged PRs in 30d
Description
I'm testing your Posh-SSH module in order to issue SSH commands to a WatchGuard firewall. I can succesfully create the New-SSHSession, but whenever I issue an Invoke-SSHCommand it always end with an exception related to timeout. I'm starting with a very simple command named "sysinfo" that returns basic information about the firewall, the command works well when working from Putty,
After the exception error, I try to issue the command again, I receive an error from my device that cannot login again, because the user is already logged in; already tried to issue a $Session.Disconnect(), but not working.
Any ideas?
Regards,
Enrique
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the sequence described: create a New-SSHSession to a WatchGuard firewall, run Invoke-SSHCommand with "sysinfo", then try Disconnect and reconnect. Start by capturing the timeout exception and session state; done means the command returns its output and the session can be disconnected and logged in again.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100