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

Can't connect


I'm trying to use a recent checkout of libssh built with Visual Studio 2013 and I can't connect.

The logs show this:

Info: 3, ssh_config_parse_file, ssh_config_parse_file: Reading configuration data from C:\Users\matthew/.ssh/config
Info: 2, ssh_connect, ssh_connect: libssh 0.8.90 (c) 2003-2018 Aris Adamantiadis, Andreas Schneider and libssh contributors. Distributed under the LGPL, please refer to COPYING file for information about your rights, using threading threads_winlock
Info: 2, ssh_socket_connect, ssh_socket_connect: Nonblocking connection socket: 1172
Info: 2, ssh_connect, ssh_connect: Socket connecting, now waiting for the callbacks to work
Info: 3, ssh_connect, ssh_connect: Actual timeout : 15000
Info: 3, ssh_socket_pollcallback, ssh_socket_pollcallback: Received POLLOUT in connecting state
Info: 1, socket_callback_connected, socket_callback_connected: Socket connection callback: 1 (0)
Info: 3, ssh_socket_unbuffered_write, ssh_socket_unbuffered_write: Enabling POLLOUT for socket
Info: 3, callback_receive_banner, callback_receive_banner: Received banner: SSH-2.0-OpenSSH_6.2
Info: 1, ssh_client_connection_callback, ssh_client_connection_callback: SSH server banner: SSH-2.0-OpenSSH_6.2
Info: 1, ssh_analyze_banner, ssh_analyze_banner: Analyzing banner: SSH-2.0-OpenSSH_6.2
Info: 1, ssh_analyze_banner, ssh_analyze_banner: We are talking to an OpenSSH client version: 6.2 (60200)
Info: 3, ssh_socket_unbuffered_write, ssh_socket_unbuffered_write: Enabling POLLOUT for socket
Info: 3, packet_send2, packet_send2: packet: wrote [len=764,padding_size=11,comp=752,payload=752]
Info: 3, ssh_packet_socket_callback, ssh_packet_socket_callback: packet: read type 20 [len=1460,padding=4,comp=1455,payload=1455]
Info: 3, ssh_packet_process, ssh_packet_process: Dispatching handler for packet type 20
Info: 2, ssh_kex_select_methods, ssh_kex_select_methods: Negotiated diffie-hellman-group14-sha1,ssh-rsa,aes256-gcm@xxxxxxxxxxx,aes256-gcm@xxxxxxxxxxx,hmac-sha2-256,hmac-sha2-256,none,none,,
Info: 3, packet_send2, packet_send2: packet: wrote [len=268,padding_size=6,comp=261,payload=261]
Info: 3, ssh_socket_unbuffered_write, ssh_socket_unbuffered_write: Enabling POLLOUT for socket
Info: 1, ssh_socket_exception_callback, ssh_socket_exception_callback: Socket exception callback: 1 (0)
Info: 1, ssh_socket_exception_callback, ssh_socket_exception_callback: Socket error: disconnected
Info: 3, ssh_connect, ssh_connect: current state : 9
Error: 2, Socket error: disconnected

And my code is available here:
https://github.com/memecode/FileTeePee/blob/4ae54d5a6982f105b9d014dd6b33907a4835c2c0/Code/ISFtp.cpp#L271

Do you think the issue is in my connection setup or maybe how I built the library?

I've tested the server with OpenSSH's command line sftp exe and it's working fine. So not a connection issue.

Matthew Allen (matthew.allen@xxxxxxxxxxxx)
memecode.com

Follow-Ups:
Re: Can't connectAndreas Schneider <asn@xxxxxxxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org