Home > Net >  C # use sharpssh Linux operation connection cannot be established
C # use sharpssh Linux operation connection cannot be established

Time:09-27

C # using Linux sharpssh connection, an error every time you connect, don't know what's the matter, reference DLLS also cited: DiffieHellman. DLL, Org. Mentalis. Security. DLL, Tamir. Sharpssh. DLL, these all quotes, but every time when the connection is established:
SshExec rmdir=new SshExec (IP, the uid and PWD);
Rmdir. The Connect ();
Code execution to connect will be an error, error content is:
Tamir. SharpSsh. JSCH. JSchException: Session. Connect: System. IO, IOException: End of IO Stream Read
In Tamir. SharpSsh. JSCH. IO. GetByte (Byte [] array, Int32 begin, Int32 length)
In Tamir. SharpSsh. JSCH. Session. Read (Buffer buf)
In Tamir. SharpSsh. JSCH. UserAuth. Start (Session Session)
In Tamir. SharpSsh. JSCH. UserAuthNone. Start (Session Session)
In Tamir. SharpSsh. JSCH. Session. Connect (Int32 connectTimeout)
In Tamir. SharpSsh. JSCH. Session. Connect (Int32 connectTimeout)
In Tamir. SharpSsh. JSCH. Session. The connect ()
In Tamir. SharpSsh. SshBase. ConnectSession (Int32 tcpPort)
In Tamir. SharpSsh. SshBase. Connect (Int32 tcpPort)
In Tamir. SharpSsh. SshBase. The Connect ()
The Internet to find some posts referenced DLL less, but all my quotes, the most strange is compiled can be used before, not these days, no clue, please everyone a great god

CodePudding user response:

Get rid of it? I also met the same problem urgent urgent

CodePudding user response:

Mainly SSH version does not, the client version with the server version, Tamir. SharpSsh not updated for a long time,

CodePudding user response:

I use Python implementation that USES paramiko library, because I have to do the data analysis is one pace reachs the designated position, use the Python
  •  Tags:  
  • C#
  • Related