Problems with SSH server

View: New views
3 Messages — Rating Filter:   Alert me  

Problems with SSH server

by Alex Komratov :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi everybody!

I'm using cryptlib 3.3.2 and was going to use it in a SSH-based
client-server app.

Doing everything like in a manual I get a strange result:

SSH session was created and customized successfully.
After calling  cryptSetAttribute(CRYPT_SESSINFO_ACTIVE,1) is blocking
until timeout or connection.
But when a client is trying to connect it hangs for some time and drop
after timeout code -25.
When I watched server I found out it crashes with code -50 i.e.
CRYPT_ENVELOPE_RESOURCE.

First of all I thought of my lovely Microsoft sockets to be to blame.

But after recompiling under Linux 2.6.XX the result is still the same.
Even if I tried to connect from windows client to Linux server.

I have no idea what to do more.

Any help would be OK.

Alexander Komratov

_______________________________________________
Cryptlib mailing list
Cryptlib@... via Mail: cryptlib-request@...
Archive: ftp://ftp.franken.de/pub/crypt/cryptlib/archives/
http://news.gmane.org/gmane.comp.encryption.cryptlib
Posts from non-subscribed addresses are blocked to prevent spam, please
subscribe in order to post messages.

Parent Message unknown Re: Problems with SSH server

by Kroum Grigorov :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I'm using successfully a slightly modified cryptlib(3.3.1) in ssh server for windows.
You can get the full source from http://www.kpym.com/download/kts117.zip
Most of the cryptlib specific stuff is in the file "sources/shared/KSsh.hxx", you might find this interesting.

Kroum

Alex Komratov <komratov@...> wrote:

>Hi everybody!
>
>I'm using cryptlib 3.3.2 and was going to use it in a SSH-based
>client-server app.
>
>Doing everything like in a manual I get a strange result:
>
>SSH session was created and customized successfully.
>After calling  cryptSetAttribute(CRYPT_SESSINFO_ACTIVE,1) is blocking
>until timeout or connection.
>But when a client is trying to connect it hangs for some time and drop
>after timeout code -25.
>When I watched server I found out it crashes with code -50 i.e.
>CRYPT_ENVELOPE_RESOURCE.
>
>First of all I thought of my lovely Microsoft sockets to be to blame.
>
>But after recompiling under Linux 2.6.XX the result is still the same.
>Even if I tried to connect from windows client to Linux server.
>
>I have no idea what to do more.
>
>Any help would be OK.
>
>Alexander Komratov
>
>_______________________________________________
>Cryptlib mailing list
>Cryptlib@... via Mail: cryptlib-request@...
>Archive: ftp://ftp.franken.de/pub/crypt/cryptlib/archives/
>http://news.gmane.org/gmane.comp.encryption.cryptlib
>Posts from non-subscribed addresses are blocked to prevent spam, please
>subscribe in order to post messages.
_______________________________________________
Cryptlib mailing list
Cryptlib@... via Mail: cryptlib-request@...
Archive: ftp://ftp.franken.de/pub/crypt/cryptlib/archives/
http://news.gmane.org/gmane.comp.encryption.cryptlib
Posts from non-subscribed addresses are blocked to prevent spam, please
subscribe in order to post messages.

Re: Problems with SSH server

by Peter Gutmann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Alex Komratov <komratov@...> writes:

>SSH session was created and customized successfully. After calling
>cryptSetAttribute(CRYPT_SESSINFO_ACTIVE,1) is blocking until timeout or
>connection. But when a client is trying to connect it hangs for some time and
>drop after timeout code -25. When I watched server I found out it crashes
>with code -50 i.e. CRYPT_ENVELOPE_RESOURCE.

You haven't told the server how to authenticate the client.  The
CRYPT_ENVELOPE_RESOURCE is the server code telling you it needs information to
allow it to authenticate the client, and the CRYPT_ERROR_TIMEOUT is the client
timing out because the server hasn't responded to its authentication request.

Peter.

_______________________________________________
Cryptlib mailing list
Cryptlib@... via Mail: cryptlib-request@...
Archive: ftp://ftp.franken.de/pub/crypt/cryptlib/archives/
http://news.gmane.org/gmane.comp.encryption.cryptlib
Posts from non-subscribed addresses are blocked to prevent spam, please
subscribe in order to post messages.