darkoperator / darkoperator/Posh-SSH

Invoke-SSHCommand always timesouts with Exception

Open
#110 6 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.