darkoperator / darkoperator/Posh-SSH

ExpectAction but for New-SSHSession ?

Open
#421 1 comment 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 am trying to create a ssh session where as part of the login process I first provide a PIN and then afterwards a one time password. I pack my username and PIN in the PSCredential object but the problem comes about when I am prompted separately for the one time password. Furthermore, after successfully authenticating, I must provide a reason and here is another instance where ExpectAction would be needed.

Is there something like Invoke-SSHStreamExpectAction but for when creating SSHSession? I cannot use Invoke-SSHStreamExpectAction because I cannot create a SSH session to create a stream from.

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

Start by examining Invoke-SSHStreamExpectAction and the SSHSession creation path to understand where interactive prompts can be handled. The requested behavior should support PIN, one-time-password, and post-authentication reason prompts during session creation, with successful authentication and session establishment as the completion criteria.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
authentication, networking
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.