SS crashes when someone tryes to connect or attack ssh port

Discussions about using SIP Sorcery on your own computer/server
Post Reply
jvwelzen
Posts: 716
Joined: Thu Sep 11, 2008 1:56 pm

SS crashes when someone tryes to connect or attack ssh port

Post by jvwelzen » Sun May 16, 2010 2:06 pm

Hi Aaron

When someone tryes to connect or attack the ssh port SS crashes

Code: Select all

2010-05-15 16:39:15,553 [111] DEBUG NSsh.Server.TransportLayer.TransportLayerManager [(null)] - Disconnecting 202.218.119.98:37093 with ProtocolError.
2010-05-15 16:39:15,563 [129] DEBUG NSsh.Server.SshSession [(null)] - Exception processing session: Non-negative number required.
Parameter name: count
System.ArgumentOutOfRangeException: Non-negative number required.
Parameter name: count
   at NSsh.Server.TransportLayer.TransportLayerManager.StreamExceptionHandler(Exception excp)
   at NSsh.Server.TransportLayer.TransportLayerManager.ReadPacket()
   at NSsh.Server.TransportLayer.State.AbstractTransportState.ProcessPacket(ITransportLayerManager manager)
   at NSsh.Server.TransportLayer.State.KeysExchangedState.Process(ITransportLayerManager manager)
   at NSsh.Server.TransportLayer.TransportLayerManager.Process(Stream stream)
   at NSsh.Server.SshSession.Process()
2010-05-15 16:39:15,573 [31] DEBUG NSsh.Server.NSshService [(null)] - Connection from 202.218.119.98:38110. connection count=2.
2010-05-15 16:39:15,713 [31] WARN  NSsh.Server.NSshService [(null)] - Rejecting connection from 202.218.119.98:38110 due to maximum client connections for  same IP address of 2 limit being reached.
2010-05-15 16:39:15,713 [129] DEBUG NSsh.Server.TransportLayer.TransportLayerManager [(null)] - Disconnecting 202.218.119.98:47322 with ProtocolError.
2010-05-15 16:39:15,713 [132] DEBUG NSsh.Server.TransportLayer.TransportLayerManager [(null)] - Changing state to Connected.
2010-05-15 16:39:15,713 [132] DEBUG NSsh.Server.TransportLayer.TransportLayerManager [(null)] - Disconnecting 202.218.119.98:38110 with TooManyConnections.
2010-05-15 16:39:15,723 [31] DEBUG NSsh.Server.NSshService [(null)] - Connection from 202.218.119.98:48344. connection count=2.

For now I closed the ssh port

But is this still a bug

Aaron
Site Admin
Posts: 4652
Joined: Thu Jul 12, 2007 12:13 am

Re: SS crashes when someone tryes to connect or attack ssh p

Post by Aaron » Sun May 16, 2010 9:12 pm

I've already fixed that one in svn though I do still have one more bug to track down in the nssh code http://sipsorcery.codeplex.com/WorkItem ... temId=4154.

Regards,
Aaron

jvwelzen
Posts: 716
Joined: Thu Sep 11, 2008 1:56 pm

Re: SS crashes when someone tryes to connect or attack ssh p

Post by jvwelzen » Mon May 17, 2010 4:49 pm

Ok Thanks

And again thanks for this wonderful free product ??

I really love the SS..................

Post Reply