sshnet / sshnet/SSH.NET

Certain Commands return in putty but not Renci.SsshNet

Open
#528 0 comments 0 reactions 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

Hey, i am using the SSH library for a backup tool and i find with certain commands i dont get anything returned, i have the output redirected to a text document
For example in putty (i have * out some info):

arp -e
Address HWtype HWaddress Flags Mask Iface
192.168.. ether 1c:59:::: C wlan0
192.168.. ether 10:f0:::: C wlan0
in Renci.SshNet is just an empty string get returned

Its not even that its reading the args wrong as this works fine
putty:

uname -a
Linux raspberrypi 4.9.35-v7+ #1014 SMP Fri Jun 30 14:47:43 BST 2017 armv7l GNU/Linux
Renci.SshNet:
Linux raspberrypi 4.9.35-v7+ #1014 SMP Fri Jun 30 14:47:43 BST 2017 armv7l GNU/Linux

The other one I've noticed is the service checker (again replaced some info with *)

service --status-all
putty:
[ * ] alsa-utils
[ * ] avahi-daemon
[ * ] bluetooth
[ * ] bootlogs
[ * ] bootmisc.sh
[ * ] checkfs.sh
[ * ] checkroot-bootclean.sh
Renci.SshNet is an empty string

Tried on Raspian and a Ubuntu Server edition, and adding 2>/dev/null with no change on either platform

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

Reproduce the behavior with arp -e and service --status-all through Renci.SshNet, comparing their redirected output with uname -a on the reported Raspbian and Ubuntu environments. Determine whether the missing text is returned through a different stream or affected by command execution, and consider the issue done when these commands produce the expected output.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.