sshnet / sshnet/SSH.NET

Sending multiple commands in one session

Open
#603 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
4.4k
Forks
993
Avg merge
9d 21h
Merged PRs (30d)
1

Description

Hi there,

I am trying to send multiple commands like

"ls"
"cd /to/some/path"
"ls"

but in the same session. I know of ShellStream, but I need the result code and result string of each command executed.

Is there a (simple) way for this?

Thanks

Contributor guide

Open the contributing guide

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

The issue names ShellStream and the SSH.NET session/command APIs but no source files or tests. Start by reviewing how SSH.NET executes commands and exposes exit codes and output, then define how multiple commands in one session should report each result. Done requires an agreed API or documented supported approach, with tests for command ordering and per-command results.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
networking
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.