[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Unable to use sshd server example with gcrypt library.


I want to build a sshd server based on libssh using gcrypt library. When I compiled libssh with openssl everything worked fine, but after I compiled libssh with gcrypt library a problem arose. 
I don't know what went wrong with "session id" . I hope that you could help me. This is your samplesshd-tty running in debug mode. Thanks you very much.

[root@MAY2 examples]# ./samplesshd-tty -v 0.0.0.0
Started sample libssh sshd on port 22
You can login as the user libssh with the password libssh
[2014/05/22 01:12:27.795121, 3] ssh_socket_pollcallback:  Received POLLOUT in connecting state
[2014/05/22 01:12:27.796616, 3] ssh_socket_unbuffered_write:  Enabling POLLOUT for socket
[2014/05/22 01:12:27.801957, 3] callback_receive_banner:  Received banner: SSH-2.0-PuTTY_Local:_May_21_2014_08:39:07
[2014/05/22 01:12:27.801981, 1] ssh_server_connection_callback:  SSH client banner: SSH-2.0-PuTTY_Local:_May_21_2014_08:39:07
[2014/05/22 01:12:27.801981, 1] ssh_analyze_banner:  Analyzing banner: SSH-2.0-PuTTY_Local:_May_21_2014_08:39:07
[2014/05/22 01:12:27.802603, 3] packet_send2:  packet: wrote [len=412,padding=10,comp=401,payload=401]
[2014/05/22 01:12:27.803284, 3] ssh_packet_socket_callback:  packet: read type 20 [len=668,padding=10,comp=657,payload=657]
[2014/05/22 01:12:27.803360, 3] ssh_packet_process:  Dispatching handler for packet type 20
[2014/05/22 01:12:27.803575, 3] crypt_set_algorithms_server:  Set output algorithm aes256-ctr
[2014/05/22 01:12:27.803650, 3] crypt_set_algorithms_server:  Set input algorithm aes256-ctr
[2014/05/22 01:12:27.804461, 3] ssh_socket_unbuffered_write:  Enabling POLLOUT for socket
[2014/05/22 01:12:27.866954, 3] ssh_packet_socket_callback:  packet: read type 30 [len=268,padding=5,comp=262,payload=262]
[2014/05/22 01:12:27.867098, 3] ssh_packet_process:  Dispatching handler for packet type 30
[2014/05/22 01:12:27.867176, 3] ssh_packet_kexdh_init:  Received SSH_MSG_KEXDH_INIT
[2014/05/22 01:12:27.891115, 1] dh_handshake_server:  Could not sign the session id
[2014/05/22 01:12:37.807014, 3] ssh_handle_key_exchange:  ssh_handle_key_exchange: current state : 6
ssh_handle_key_exchange: Could not sign the session id
[root@MAY2 examples]# 

Archive administrator: postmaster@lists.cynapses.org