Quantcast
Channel: sshnet Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 1026

Commented Unassigned: CreateShellStream closes the conenction : "An established connection was aborted by the server" [2563]

$
0
0
Dear friends, I am using SSHNET for many connections. I use CreateShellStream to find an output.
One kind of hosts (the old one, BusyBox v1.00-pre10) closes the connection on
```
using (var stream = ssh.CreateShellStream("dumb", 80, 24, 800, 600, 1024))
```
It happens only with that type of hosts.

```
using (var ssh = new SshClient(ip, user, pass))
{
ssh.Connect();
ssh.SendKeepAlive();

using (var stream = ssh.CreateShellStream("dumb", 80, 24, 800, 600, 1024))
{
var reader = new StreamReader(stream);
var writer = new StreamWriter(stream);
...
```
```

at Renci.SshNet.Session.WaitOnHandle(WaitHandle waitHandle)
at Renci.SshNet.Channels.Channel.WaitOnHandle(WaitHandle waitHandle)
at Renci.SshNet.Channels.ChannelSession.SendPseudoTerminalRequest(String environmentVariable, UInt32 columns, UInt32 rows, UInt32 width, UInt32 height, IDictionary`2 terminalModeValues)
at Renci.SshNet.ShellStream..ctor(Session session, String terminalName, UInt32 columns, UInt32 rows, UInt32 width, UInt32 height, Int32 maxLines, IDictionary`2 terminalModeValues)
at Renci.SshNet.SshClient.CreateShellStream(String terminalName, UInt32 columns, UInt32 rows, UInt32 width, UInt32 height, Int32 bufferSize, IDictionary`2 terminalModeValues)
at Renci.SshNet.SshClient.CreateShellStream(String terminalName, UInt32 columns, UInt32 rows, UInt32 width, UInt32 height, Int32 bufferSize)
at wifi_ap_info.Program.ssidcheck2(String ip, String user, String pass) in c:\Users\oleg\Docs\wifi_ap_info\ssh client\Program.cs:line 413

```

Does anyone solved this problem?
Thank You.
Comments: ** Comment from web user: artkrv **

I can't find the version. It's an access point, on BusyBox v1.00-pre10 (2006.11.20-13:01+0000) Built-in shell (ash).


Viewing all articles
Browse latest Browse all 1026

Trending Articles