sshnet / sshnet/SSH.NET

Certain Commands return in putty but not Renci.SsshNet

オープン
#528 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
C#
スター
4.4k
フォーク
993
平均マージ
9日 21時間
マージ済み PR(30日)
1

説明

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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

Raspbian と Ubuntu の報告された環境で、arp -e および service --status-all の動作を Renci.SshNet 経由で再現し、それらのリダイレクトされた出力を uname -a と比較する。欠落しているテキストが別のストリームを通じて返されているのか、コマンドの実行による影響を受けているのかを確認し、これらのコマンドが期待される出力を生成すれば issue は完了とする。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
csharp
領域
networking
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。