Created
June 18, 2010 13:48
-
-
Save larsks/443651 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <libssh2.h> | |
#include <unistd.h> | |
#include <stdarg.h> | |
#include <string.h> | |
#include <netdb.h> | |
#include <fcntl.h> | |
#include <errno.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <netinet/in.h> | |
#include <openssl/bio.h> | |
#include <openssl/evp.h> | |
#include <sys/select.h> | |
#ifndef INADDR_NONE | |
#define INADDR_NONE (in_addr_t)-1 | |
#endif | |
#define OPT_KNOWNHOSTS 'f' | |
#define OPT_TIMEOUT 't' | |
#define OPT_PORT 'p' | |
#define OPT_STRICT 's' | |
#define OPT_VERBOSE 'v' | |
#define OPT_HELP 'h' | |
#define OPTSTRING "f:t:p:svh" | |
#define NAG_OKAY 0 | |
#define NAG_WARN 1 | |
#define NAG_CRIT 2 | |
#define NAG_WTF 3 | |
char *known_hosts_path = NULL; | |
char *port = "ssh"; | |
int timeout = 0; | |
int strict = 0; | |
int verbose = 0; | |
char *progname = "check_ssh"; | |
void logmsg(char *msg, ...) { | |
va_list ap; | |
fprintf(stderr, "%s: ", progname); | |
va_start(ap, msg); | |
vfprintf(stderr, msg, ap); | |
va_end(ap); | |
fprintf(stderr, "\n"); | |
} | |
void nag_exit (int status, char *msg, ...) { | |
va_list ap; | |
printf("SSH "); | |
switch (status) { | |
case NAG_OKAY: | |
printf("OKAY - "); | |
break; | |
case NAG_WARN: | |
printf("WARN - "); | |
break; | |
case NAG_CRIT: | |
printf("CRITICAL - "); | |
break; | |
case NAG_WTF: | |
printf("UNKNOWN - "); | |
break; | |
} | |
va_start(ap, msg); | |
vprintf(msg, ap); | |
va_end(ap); | |
printf("\n"); | |
exit(status); | |
} | |
void usage (FILE *out) { | |
fprintf(out, "%s: usage: %s [ -f known_hosts ] [ -p port ] [ -t timeout ] [ -sv ] host\n", | |
progname, progname); | |
} | |
void process_args (int argc, char *argv[]) { | |
int c; | |
while (EOF != (c = getopt(argc, argv, OPTSTRING))) { | |
switch (c) { | |
case OPT_KNOWNHOSTS: | |
known_hosts_path = strdup(optarg); | |
break; | |
case OPT_TIMEOUT: | |
timeout = atoi(optarg); | |
break; | |
case OPT_PORT: | |
port = optarg; | |
break; | |
case OPT_STRICT: | |
strict = 1; | |
break; | |
case OPT_VERBOSE: | |
verbose = 1; | |
break; | |
case OPT_HELP: | |
usage(stdout); | |
exit(0); | |
case '?': | |
usage(stderr); | |
exit(2); | |
} | |
} | |
} | |
struct addrinfo *get_first_address (const char *hostname) { | |
struct addrinfo *res, hints; | |
if (0 != getaddrinfo(hostname, port, NULL, &res)) { | |
nag_exit(NAG_WTF, "%s: hostname lookup failed", hostname); | |
} | |
return res; | |
} | |
int main(int argc, char *argv[]) | |
{ | |
char *server_name; | |
struct addrinfo *server_addr; | |
int i, rc, sock = -1; | |
const char *fingerprint, *fingerprint_hex; | |
const char *hostkey; | |
size_t hklen; | |
int hktype; | |
LIBSSH2_SESSION *session; | |
LIBSSH2_KNOWNHOSTS *hosts = NULL; | |
struct libssh2_knownhost *store; | |
process_args(argc, argv); | |
argc = argc-optind; | |
argv = argv + optind; | |
if (!argc) | |
nag_exit(NAG_WTF, "you must provide a hostname or address"); | |
server_name = argv[0]; | |
server_addr = get_first_address(server_name); | |
if (0 != libssh2_init (0)) { | |
nag_exit (NAG_WTF, "libssh2 initialization failed (%d)", rc); | |
} | |
/* Create a session instance */ | |
session = libssh2_session_init(); | |
if(!session) { | |
nag_exit(NAG_WTF, "Could not initialize SSH session"); | |
} | |
/* Connect to SSH server */ | |
sock = socket(server_addr->ai_family, SOCK_STREAM, IPPROTO_TCP); | |
if (connect(sock, server_addr->ai_addr, | |
server_addr->ai_addrlen) != 0) { | |
nag_exit(NAG_CRIT, "%s: connection failed", server_name); | |
} | |
hosts = libssh2_knownhost_init(session); | |
if (known_hosts_path) | |
libssh2_knownhost_readfile(hosts, known_hosts_path, LIBSSH2_KNOWNHOST_FILE_OPENSSH); | |
if (0 != (rc = libssh2_session_startup(session, sock))) { | |
nag_exit(NAG_WTF, | |
"Error when starting up SSH session: %d", | |
rc); | |
} | |
fingerprint = libssh2_hostkey_hash(session, LIBSSH2_HOSTKEY_HASH_SHA1); | |
fingerprint_hex = (char *)malloc(strlen(fingerprint) * 3); | |
for(i = 0; i < 20; i++) | |
sprintf((char *)(fingerprint_hex + (i*3)), "%02X ", (unsigned char)fingerprint[i]); | |
if (verbose) | |
logmsg("%s key fingerprint: %s", server_name, fingerprint_hex); | |
hostkey = libssh2_session_hostkey(session, &hklen, &hktype); | |
if (!hostkey || !strlen(hostkey)) | |
nag_exit(NAG_WTF, "failed to obtain host key"); | |
rc = libssh2_knownhost_check(hosts, | |
server_name, | |
hostkey, hklen, | |
LIBSSH2_KNOWNHOST_TYPE_PLAIN|LIBSSH2_KNOWNHOST_KEYENC_RAW| | |
(hktype == LIBSSH2_HOSTKEY_TYPE_RSA ? LIBSSH2_KNOWNHOST_KEY_SSHRSA | |
: LIBSSH2_KNOWNHOST_KEY_SSHDSS), | |
&store); | |
switch (rc) { | |
case LIBSSH2_KNOWNHOST_CHECK_FAILURE: | |
if (verbose) | |
logmsg("knownhost check: failed"); | |
nag_exit(NAG_WTF, "knownhost check failed"); | |
break; | |
case LIBSSH2_KNOWNHOST_CHECK_NOTFOUND: | |
if (verbose) | |
logmsg("knownhost check: host not found"); | |
if (!strict && known_hosts_path) { | |
if (verbose) | |
logmsg("adding host %s to %s.", server_name, known_hosts_path); | |
libssh2_knownhost_addc(hosts, | |
server_name, "", | |
hostkey, hklen, | |
NULL, 0, | |
LIBSSH2_KNOWNHOST_TYPE_PLAIN|LIBSSH2_KNOWNHOST_KEYENC_RAW| | |
(hktype == LIBSSH2_HOSTKEY_TYPE_RSA ? LIBSSH2_KNOWNHOST_KEY_SSHRSA | |
: LIBSSH2_KNOWNHOST_KEY_SSHDSS), | |
NULL); | |
libssh2_knownhost_writefile(hosts, known_hosts_path, | |
LIBSSH2_KNOWNHOST_FILE_OPENSSH); | |
} else if (strict) { | |
nag_exit(NAG_CRIT, "%s: host key verification failed", server_name); | |
} else { | |
nag_exit(NAG_WARN, "%s: host key unknown", server_name); | |
} | |
case LIBSSH2_KNOWNHOST_CHECK_MATCH: | |
if (verbose) | |
logmsg("knownhost check: matched"); | |
nag_exit(NAG_OKAY, "%s: %s", server_name, fingerprint_hex); | |
break; | |
case LIBSSH2_KNOWNHOST_CHECK_MISMATCH: | |
if (verbose) | |
logmsg("knownhost check: mismatch"); | |
nag_exit(NAG_CRIT, "%s: host key verification failed"); | |
break; | |
} | |
logmsg("all done."); | |
shutdown: | |
close(sock); | |
libssh2_exit(); | |
return 0; | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[libssh2] 0.487985 Transport: session_startup for socket 3 | |
[libssh2] 0.488041 Transport: Sending Banner: SSH-2.0-libssh2_1.2.7-20100617 | |
[libssh2] 0.488073 Socket: Sent 32/32 bytes at 0x805c940+0 | |
[libssh2] 0.488085 Socket: Error recving 1 bytes to 0xbf9fbfe7: 11 | |
[libssh2] 0.488092 Failure Event: -37 - Failed getting banner | |
[libssh2] 0.494297 Socket: Recved 1 bytes to 0xbf9fbfe7 | |
[libssh2] 0.494319 Socket: Recved 1 bytes to 0xbf9fbfe7 | |
[libssh2] 0.494327 Socket: Recved 1 bytes to 0xbf9fbfe7 | |
[libssh2] 0.494335 Socket: Recved 1 bytes to 0xbf9fbfe7 | |
[libssh2] 0.494342 Socket: Recved 1 bytes to 0xbf9fbfe7 | |
[libssh2] 0.494350 Socket: Recved 1 bytes to 0xbf9fbfe7 | |
[libssh2] 0.494357 Socket: Recved 1 bytes to 0xbf9fbfe7 | |
[libssh2] 0.494364 Socket: Recved 1 bytes to 0xbf9fbfe7 | |
[libssh2] 0.494371 Socket: Recved 1 bytes to 0xbf9fbfe7 | |
[libssh2] 0.494379 Socket: Recved 1 bytes to 0xbf9fbfe7 | |
[libssh2] 0.494386 Socket: Recved 1 bytes to 0xbf9fbfe7 | |
[libssh2] 0.494394 Socket: Recved 1 bytes to 0xbf9fbfe7 | |
[libssh2] 0.494401 Socket: Recved 1 bytes to 0xbf9fbfe7 | |
[libssh2] 0.494408 Socket: Recved 1 bytes to 0xbf9fbfe7 | |
[libssh2] 0.494416 Socket: Recved 1 bytes to 0xbf9fbfe7 | |
[libssh2] 0.494423 Socket: Recved 1 bytes to 0xbf9fbfe7 | |
[libssh2] 0.494430 Socket: Recved 1 bytes to 0xbf9fbfe7 | |
[libssh2] 0.494437 Socket: Recved 1 bytes to 0xbf9fbfe7 | |
[libssh2] 0.494445 Socket: Recved 1 bytes to 0xbf9fbfe7 | |
[libssh2] 0.494452 Socket: Recved 1 bytes to 0xbf9fbfe7 | |
[libssh2] 0.494460 Socket: Recved 1 bytes to 0xbf9fbfe7 | |
[libssh2] 0.494467 Transport: Received Banner: SSH-2.0-OpenSSH_5.3 | |
[libssh2] 0.494645 Key Ex: Sent KEX: diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1 | |
[libssh2] 0.494654 Key Ex: Sent HOSTKEY: ssh-rsa,ssh-dss | |
[libssh2] 0.494659 Key Ex: Sent CRYPT_CS: aes128-ctr,aes192-ctr,aes256-ctr,aes256-cbc,rijndael-cbc@lysator.liu.se,aes192-cbc,aes128-cbc,blowfish-cbc,arcfour128,arcfour,cast128-cbc,3des-cbc | |
[libssh2] 0.494665 Key Ex: Sent CRYPT_SC: aes128-ctr,aes192-ctr,aes256-ctr,aes256-cbc,rijndael-cbc@lysator.liu.se,aes192-cbc,aes128-cbc,blowfish-cbc,arcfour128,arcfour,cast128-cbc,3des-cbc | |
[libssh2] 0.494670 Key Ex: Sent MAC_CS: hmac-sha1,hmac-sha1-96,hmac-md5,hmac-md5-96,hmac-ripemd160,hmac-ripemd160@openssh.com | |
[libssh2] 0.494675 Key Ex: Sent MAC_SC: hmac-sha1,hmac-sha1-96,hmac-md5,hmac-md5-96,hmac-ripemd160,hmac-ripemd160@openssh.com | |
[libssh2] 0.494681 Key Ex: Sent COMP_CS: none,zlib | |
[libssh2] 0.494686 Key Ex: Sent COMP_SC: none,zlib | |
[libssh2] 0.494691 Key Ex: Sent LANG_CS: | |
[libssh2] 0.494696 Key Ex: Sent LANG_SC: | |
=> libssh2_transport_write plain (646 bytes) | |
0000: 14 E8 A0 D7 55 68 56 D9 FB A7 2B 19 97 CE 80 E4 : ....UhV...+..... | |
0010: B1 00 00 00 59 64 69 66 66 69 65 2D 68 65 6C 6C : ....Ydiffie-hell | |
0020: 6D 61 6E 2D 67 72 6F 75 70 31 34 2D 73 68 61 31 : man-group14-sha1 | |
0030: 2C 64 69 66 66 69 65 2D 68 65 6C 6C 6D 61 6E 2D : ,diffie-hellman- | |
0040: 67 72 6F 75 70 2D 65 78 63 68 61 6E 67 65 2D 73 : group-exchange-s | |
0050: 68 61 31 2C 64 69 66 66 69 65 2D 68 65 6C 6C 6D : ha1,diffie-hellm | |
0060: 61 6E 2D 67 72 6F 75 70 31 2D 73 68 61 31 00 00 : an-group1-sha1.. | |
0070: 00 0F 73 73 68 2D 72 73 61 2C 73 73 68 2D 64 73 : ..ssh-rsa,ssh-ds | |
0080: 73 00 00 00 92 61 65 73 31 32 38 2D 63 74 72 2C : s....aes128-ctr, | |
0090: 61 65 73 31 39 32 2D 63 74 72 2C 61 65 73 32 35 : aes192-ctr,aes25 | |
00a0: 36 2D 63 74 72 2C 61 65 73 32 35 36 2D 63 62 63 : 6-ctr,aes256-cbc | |
00b0: 2C 72 69 6A 6E 64 61 65 6C 2D 63 62 63 40 6C 79 : ,rijndael-cbc@ly | |
00c0: 73 61 74 6F 72 2E 6C 69 75 2E 73 65 2C 61 65 73 : sator.liu.se,aes | |
00d0: 31 39 32 2D 63 62 63 2C 61 65 73 31 32 38 2D 63 : 192-cbc,aes128-c | |
00e0: 62 63 2C 62 6C 6F 77 66 69 73 68 2D 63 62 63 2C : bc,blowfish-cbc, | |
00f0: 61 72 63 66 6F 75 72 31 32 38 2C 61 72 63 66 6F : arcfour128,arcfo | |
0100: 75 72 2C 63 61 73 74 31 32 38 2D 63 62 63 2C 33 : ur,cast128-cbc,3 | |
0110: 64 65 73 2D 63 62 63 00 00 00 92 61 65 73 31 32 : des-cbc....aes12 | |
0120: 38 2D 63 74 72 2C 61 65 73 31 39 32 2D 63 74 72 : 8-ctr,aes192-ctr | |
0130: 2C 61 65 73 32 35 36 2D 63 74 72 2C 61 65 73 32 : ,aes256-ctr,aes2 | |
0140: 35 36 2D 63 62 63 2C 72 69 6A 6E 64 61 65 6C 2D : 56-cbc,rijndael- | |
0150: 63 62 63 40 6C 79 73 61 74 6F 72 2E 6C 69 75 2E : cbc@lysator.liu. | |
0160: 73 65 2C 61 65 73 31 39 32 2D 63 62 63 2C 61 65 : se,aes192-cbc,ae | |
0170: 73 31 32 38 2D 63 62 63 2C 62 6C 6F 77 66 69 73 : s128-cbc,blowfis | |
0180: 68 2D 63 62 63 2C 61 72 63 66 6F 75 72 31 32 38 : h-cbc,arcfour128 | |
0190: 2C 61 72 63 66 6F 75 72 2C 63 61 73 74 31 32 38 : ,arcfour,cast128 | |
01a0: 2D 63 62 63 2C 33 64 65 73 2D 63 62 63 00 00 00 : -cbc,3des-cbc... | |
01b0: 55 68 6D 61 63 2D 73 68 61 31 2C 68 6D 61 63 2D : Uhmac-sha1,hmac- | |
01c0: 73 68 61 31 2D 39 36 2C 68 6D 61 63 2D 6D 64 35 : sha1-96,hmac-md5 | |
01d0: 2C 68 6D 61 63 2D 6D 64 35 2D 39 36 2C 68 6D 61 : ,hmac-md5-96,hma | |
01e0: 63 2D 72 69 70 65 6D 64 31 36 30 2C 68 6D 61 63 : c-ripemd160,hmac | |
01f0: 2D 72 69 70 65 6D 64 31 36 30 40 6F 70 65 6E 73 : -ripemd160@opens | |
0200: 73 68 2E 63 6F 6D 00 00 00 55 68 6D 61 63 2D 73 : sh.com...Uhmac-s | |
0210: 68 61 31 2C 68 6D 61 63 2D 73 68 61 31 2D 39 36 : ha1,hmac-sha1-96 | |
0220: 2C 68 6D 61 63 2D 6D 64 35 2C 68 6D 61 63 2D 6D : ,hmac-md5,hmac-m | |
0230: 64 35 2D 39 36 2C 68 6D 61 63 2D 72 69 70 65 6D : d5-96,hmac-ripem | |
0240: 64 31 36 30 2C 68 6D 61 63 2D 72 69 70 65 6D 64 : d160,hmac-ripemd | |
0250: 31 36 30 40 6F 70 65 6E 73 73 68 2E 63 6F 6D 00 : 160@openssh.com. | |
0260: 00 00 09 6E 6F 6E 65 2C 7A 6C 69 62 00 00 00 09 : ...none,zlib.... | |
0270: 6E 6F 6E 65 2C 7A 6C 69 62 00 00 00 00 00 00 00 : none,zlib....... | |
0280: 00 00 00 00 00 00 : ...... | |
[libssh2] 0.494929 Socket: Sent 656/656 bytes at 0x984f228 | |
=> libssh2_transport_write send() (656 bytes) | |
0000: 00 00 02 8C 05 14 E8 A0 D7 55 68 56 D9 FB A7 2B : .........UhV...+ | |
0010: 19 97 CE 80 E4 B1 00 00 00 59 64 69 66 66 69 65 : .........Ydiffie | |
0020: 2D 68 65 6C 6C 6D 61 6E 2D 67 72 6F 75 70 31 34 : -hellman-group14 | |
0030: 2D 73 68 61 31 2C 64 69 66 66 69 65 2D 68 65 6C : -sha1,diffie-hel | |
0040: 6C 6D 61 6E 2D 67 72 6F 75 70 2D 65 78 63 68 61 : lman-group-excha | |
0050: 6E 67 65 2D 73 68 61 31 2C 64 69 66 66 69 65 2D : nge-sha1,diffie- | |
0060: 68 65 6C 6C 6D 61 6E 2D 67 72 6F 75 70 31 2D 73 : hellman-group1-s | |
0070: 68 61 31 00 00 00 0F 73 73 68 2D 72 73 61 2C 73 : ha1....ssh-rsa,s | |
0080: 73 68 2D 64 73 73 00 00 00 92 61 65 73 31 32 38 : sh-dss....aes128 | |
0090: 2D 63 74 72 2C 61 65 73 31 39 32 2D 63 74 72 2C : -ctr,aes192-ctr, | |
00a0: 61 65 73 32 35 36 2D 63 74 72 2C 61 65 73 32 35 : aes256-ctr,aes25 | |
00b0: 36 2D 63 62 63 2C 72 69 6A 6E 64 61 65 6C 2D 63 : 6-cbc,rijndael-c | |
00c0: 62 63 40 6C 79 73 61 74 6F 72 2E 6C 69 75 2E 73 : bc@lysator.liu.s | |
00d0: 65 2C 61 65 73 31 39 32 2D 63 62 63 2C 61 65 73 : e,aes192-cbc,aes | |
00e0: 31 32 38 2D 63 62 63 2C 62 6C 6F 77 66 69 73 68 : 128-cbc,blowfish | |
00f0: 2D 63 62 63 2C 61 72 63 66 6F 75 72 31 32 38 2C : -cbc,arcfour128, | |
0100: 61 72 63 66 6F 75 72 2C 63 61 73 74 31 32 38 2D : arcfour,cast128- | |
0110: 63 62 63 2C 33 64 65 73 2D 63 62 63 00 00 00 92 : cbc,3des-cbc.... | |
0120: 61 65 73 31 32 38 2D 63 74 72 2C 61 65 73 31 39 : aes128-ctr,aes19 | |
0130: 32 2D 63 74 72 2C 61 65 73 32 35 36 2D 63 74 72 : 2-ctr,aes256-ctr | |
0140: 2C 61 65 73 32 35 36 2D 63 62 63 2C 72 69 6A 6E : ,aes256-cbc,rijn | |
0150: 64 61 65 6C 2D 63 62 63 40 6C 79 73 61 74 6F 72 : dael-cbc@lysator | |
0160: 2E 6C 69 75 2E 73 65 2C 61 65 73 31 39 32 2D 63 : .liu.se,aes192-c | |
0170: 62 63 2C 61 65 73 31 32 38 2D 63 62 63 2C 62 6C : bc,aes128-cbc,bl | |
0180: 6F 77 66 69 73 68 2D 63 62 63 2C 61 72 63 66 6F : owfish-cbc,arcfo | |
0190: 75 72 31 32 38 2C 61 72 63 66 6F 75 72 2C 63 61 : ur128,arcfour,ca | |
01a0: 73 74 31 32 38 2D 63 62 63 2C 33 64 65 73 2D 63 : st128-cbc,3des-c | |
01b0: 62 63 00 00 00 55 68 6D 61 63 2D 73 68 61 31 2C : bc...Uhmac-sha1, | |
01c0: 68 6D 61 63 2D 73 68 61 31 2D 39 36 2C 68 6D 61 : hmac-sha1-96,hma | |
01d0: 63 2D 6D 64 35 2C 68 6D 61 63 2D 6D 64 35 2D 39 : c-md5,hmac-md5-9 | |
01e0: 36 2C 68 6D 61 63 2D 72 69 70 65 6D 64 31 36 30 : 6,hmac-ripemd160 | |
01f0: 2C 68 6D 61 63 2D 72 69 70 65 6D 64 31 36 30 40 : ,hmac-ripemd160@ | |
0200: 6F 70 65 6E 73 73 68 2E 63 6F 6D 00 00 00 55 68 : openssh.com...Uh | |
0210: 6D 61 63 2D 73 68 61 31 2C 68 6D 61 63 2D 73 68 : mac-sha1,hmac-sh | |
0220: 61 31 2D 39 36 2C 68 6D 61 63 2D 6D 64 35 2C 68 : a1-96,hmac-md5,h | |
0230: 6D 61 63 2D 6D 64 35 2D 39 36 2C 68 6D 61 63 2D : mac-md5-96,hmac- | |
0240: 72 69 70 65 6D 64 31 36 30 2C 68 6D 61 63 2D 72 : ripemd160,hmac-r | |
0250: 69 70 65 6D 64 31 36 30 40 6F 70 65 6E 73 73 68 : ipemd160@openssh | |
0260: 2E 63 6F 6D 00 00 00 09 6E 6F 6E 65 2C 7A 6C 69 : .com....none,zli | |
0270: 62 00 00 00 09 6E 6F 6E 65 2C 7A 6C 69 62 00 00 : b....none,zlib.. | |
0280: 00 00 00 00 00 00 00 00 00 00 00 A4 D0 48 B8 5B : .............H.[ | |
[libssh2] 0.495129 Transport: Looking for packet of type: 20 | |
[libssh2] 0.495139 Socket: Error recving 16384 bytes to 0x984a7d0+0: 11 | |
[libssh2] 0.495146 Failure Event: -37 - Unable to exchange encryption keys | |
[libssh2] 0.495500 Socket: Recved 784/16384 bytes to 0x984a7d0+0 | |
=> libssh2_transport_read() raw (784 bytes) | |
0000: 00 00 03 0C 0A 14 BE 30 11 FC F2 B2 0A 74 D1 23 : .......0.....t.# | |
0010: 71 DC A0 17 30 BA 00 00 00 7E 64 69 66 66 69 65 : q...0....~diffie | |
0020: 2D 68 65 6C 6C 6D 61 6E 2D 67 72 6F 75 70 2D 65 : -hellman-group-e | |
0030: 78 63 68 61 6E 67 65 2D 73 68 61 32 35 36 2C 64 : xchange-sha256,d | |
0040: 69 66 66 69 65 2D 68 65 6C 6C 6D 61 6E 2D 67 72 : iffie-hellman-gr | |
0050: 6F 75 70 2D 65 78 63 68 61 6E 67 65 2D 73 68 61 : oup-exchange-sha | |
0060: 31 2C 64 69 66 66 69 65 2D 68 65 6C 6C 6D 61 6E : 1,diffie-hellman | |
0070: 2D 67 72 6F 75 70 31 34 2D 73 68 61 31 2C 64 69 : -group14-sha1,di | |
0080: 66 66 69 65 2D 68 65 6C 6C 6D 61 6E 2D 67 72 6F : ffie-hellman-gro | |
0090: 75 70 31 2D 73 68 61 31 00 00 00 0F 73 73 68 2D : up1-sha1....ssh- | |
00a0: 72 73 61 2C 73 73 68 2D 64 73 73 00 00 00 9D 61 : rsa,ssh-dss....a | |
00b0: 65 73 31 32 38 2D 63 74 72 2C 61 65 73 31 39 32 : es128-ctr,aes192 | |
00c0: 2D 63 74 72 2C 61 65 73 32 35 36 2D 63 74 72 2C : -ctr,aes256-ctr, | |
00d0: 61 72 63 66 6F 75 72 32 35 36 2C 61 72 63 66 6F : arcfour256,arcfo | |
00e0: 75 72 31 32 38 2C 61 65 73 31 32 38 2D 63 62 63 : ur128,aes128-cbc | |
00f0: 2C 33 64 65 73 2D 63 62 63 2C 62 6C 6F 77 66 69 : ,3des-cbc,blowfi | |
0100: 73 68 2D 63 62 63 2C 63 61 73 74 31 32 38 2D 63 : sh-cbc,cast128-c | |
0110: 62 63 2C 61 65 73 31 39 32 2D 63 62 63 2C 61 65 : bc,aes192-cbc,ae | |
0120: 73 32 35 36 2D 63 62 63 2C 61 72 63 66 6F 75 72 : s256-cbc,arcfour | |
0130: 2C 72 69 6A 6E 64 61 65 6C 2D 63 62 63 40 6C 79 : ,rijndael-cbc@ly | |
0140: 73 61 74 6F 72 2E 6C 69 75 2E 73 65 00 00 00 9D : sator.liu.se.... | |
0150: 61 65 73 31 32 38 2D 63 74 72 2C 61 65 73 31 39 : aes128-ctr,aes19 | |
0160: 32 2D 63 74 72 2C 61 65 73 32 35 36 2D 63 74 72 : 2-ctr,aes256-ctr | |
0170: 2C 61 72 63 66 6F 75 72 32 35 36 2C 61 72 63 66 : ,arcfour256,arcf | |
0180: 6F 75 72 31 32 38 2C 61 65 73 31 32 38 2D 63 62 : our128,aes128-cb | |
0190: 63 2C 33 64 65 73 2D 63 62 63 2C 62 6C 6F 77 66 : c,3des-cbc,blowf | |
01a0: 69 73 68 2D 63 62 63 2C 63 61 73 74 31 32 38 2D : ish-cbc,cast128- | |
01b0: 63 62 63 2C 61 65 73 31 39 32 2D 63 62 63 2C 61 : cbc,aes192-cbc,a | |
01c0: 65 73 32 35 36 2D 63 62 63 2C 61 72 63 66 6F 75 : es256-cbc,arcfou | |
01d0: 72 2C 72 69 6A 6E 64 61 65 6C 2D 63 62 63 40 6C : r,rijndael-cbc@l | |
01e0: 79 73 61 74 6F 72 2E 6C 69 75 2E 73 65 00 00 00 : ysator.liu.se... | |
01f0: 69 68 6D 61 63 2D 6D 64 35 2C 68 6D 61 63 2D 73 : ihmac-md5,hmac-s | |
0200: 68 61 31 2C 75 6D 61 63 2D 36 34 40 6F 70 65 6E : ha1,umac-64@open | |
0210: 73 73 68 2E 63 6F 6D 2C 68 6D 61 63 2D 72 69 70 : ssh.com,hmac-rip | |
0220: 65 6D 64 31 36 30 2C 68 6D 61 63 2D 72 69 70 65 : emd160,hmac-ripe | |
0230: 6D 64 31 36 30 40 6F 70 65 6E 73 73 68 2E 63 6F : md160@openssh.co | |
0240: 6D 2C 68 6D 61 63 2D 73 68 61 31 2D 39 36 2C 68 : m,hmac-sha1-96,h | |
0250: 6D 61 63 2D 6D 64 35 2D 39 36 00 00 00 69 68 6D : mac-md5-96...ihm | |
0260: 61 63 2D 6D 64 35 2C 68 6D 61 63 2D 73 68 61 31 : ac-md5,hmac-sha1 | |
0270: 2C 75 6D 61 63 2D 36 34 40 6F 70 65 6E 73 73 68 : ,umac-64@openssh | |
0280: 2E 63 6F 6D 2C 68 6D 61 63 2D 72 69 70 65 6D 64 : .com,hmac-ripemd | |
0290: 31 36 30 2C 68 6D 61 63 2D 72 69 70 65 6D 64 31 : 160,hmac-ripemd1 | |
02a0: 36 30 40 6F 70 65 6E 73 73 68 2E 63 6F 6D 2C 68 : 60@openssh.com,h | |
02b0: 6D 61 63 2D 73 68 61 31 2D 39 36 2C 68 6D 61 63 : mac-sha1-96,hmac | |
02c0: 2D 6D 64 35 2D 39 36 00 00 00 15 6E 6F 6E 65 2C : -md5-96....none, | |
02d0: 7A 6C 69 62 40 6F 70 65 6E 73 73 68 2E 63 6F 6D : zlib@openssh.com | |
02e0: 00 00 00 15 6E 6F 6E 65 2C 7A 6C 69 62 40 6F 70 : ....none,zlib@op | |
02f0: 65 6E 73 73 68 2E 63 6F 6D 00 00 00 00 00 00 00 : enssh.com....... | |
0300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 : ................ | |
=> libssh2_transport_read() plain (769 bytes) | |
0000: 14 BE 30 11 FC F2 B2 0A 74 D1 23 71 DC A0 17 30 : ..0.....t.#q...0 | |
0010: BA 00 00 00 7E 64 69 66 66 69 65 2D 68 65 6C 6C : ....~diffie-hell | |
0020: 6D 61 6E 2D 67 72 6F 75 70 2D 65 78 63 68 61 6E : man-group-exchan | |
0030: 67 65 2D 73 68 61 32 35 36 2C 64 69 66 66 69 65 : ge-sha256,diffie | |
0040: 2D 68 65 6C 6C 6D 61 6E 2D 67 72 6F 75 70 2D 65 : -hellman-group-e | |
0050: 78 63 68 61 6E 67 65 2D 73 68 61 31 2C 64 69 66 : xchange-sha1,dif | |
0060: 66 69 65 2D 68 65 6C 6C 6D 61 6E 2D 67 72 6F 75 : fie-hellman-grou | |
0070: 70 31 34 2D 73 68 61 31 2C 64 69 66 66 69 65 2D : p14-sha1,diffie- | |
0080: 68 65 6C 6C 6D 61 6E 2D 67 72 6F 75 70 31 2D 73 : hellman-group1-s | |
0090: 68 61 31 00 00 00 0F 73 73 68 2D 72 73 61 2C 73 : ha1....ssh-rsa,s | |
00a0: 73 68 2D 64 73 73 00 00 00 9D 61 65 73 31 32 38 : sh-dss....aes128 | |
00b0: 2D 63 74 72 2C 61 65 73 31 39 32 2D 63 74 72 2C : -ctr,aes192-ctr, | |
00c0: 61 65 73 32 35 36 2D 63 74 72 2C 61 72 63 66 6F : aes256-ctr,arcfo | |
00d0: 75 72 32 35 36 2C 61 72 63 66 6F 75 72 31 32 38 : ur256,arcfour128 | |
00e0: 2C 61 65 73 31 32 38 2D 63 62 63 2C 33 64 65 73 : ,aes128-cbc,3des | |
00f0: 2D 63 62 63 2C 62 6C 6F 77 66 69 73 68 2D 63 62 : -cbc,blowfish-cb | |
0100: 63 2C 63 61 73 74 31 32 38 2D 63 62 63 2C 61 65 : c,cast128-cbc,ae | |
0110: 73 31 39 32 2D 63 62 63 2C 61 65 73 32 35 36 2D : s192-cbc,aes256- | |
0120: 63 62 63 2C 61 72 63 66 6F 75 72 2C 72 69 6A 6E : cbc,arcfour,rijn | |
0130: 64 61 65 6C 2D 63 62 63 40 6C 79 73 61 74 6F 72 : dael-cbc@lysator | |
0140: 2E 6C 69 75 2E 73 65 00 00 00 9D 61 65 73 31 32 : .liu.se....aes12 | |
0150: 38 2D 63 74 72 2C 61 65 73 31 39 32 2D 63 74 72 : 8-ctr,aes192-ctr | |
0160: 2C 61 65 73 32 35 36 2D 63 74 72 2C 61 72 63 66 : ,aes256-ctr,arcf | |
0170: 6F 75 72 32 35 36 2C 61 72 63 66 6F 75 72 31 32 : our256,arcfour12 | |
0180: 38 2C 61 65 73 31 32 38 2D 63 62 63 2C 33 64 65 : 8,aes128-cbc,3de | |
0190: 73 2D 63 62 63 2C 62 6C 6F 77 66 69 73 68 2D 63 : s-cbc,blowfish-c | |
01a0: 62 63 2C 63 61 73 74 31 32 38 2D 63 62 63 2C 61 : bc,cast128-cbc,a | |
01b0: 65 73 31 39 32 2D 63 62 63 2C 61 65 73 32 35 36 : es192-cbc,aes256 | |
01c0: 2D 63 62 63 2C 61 72 63 66 6F 75 72 2C 72 69 6A : -cbc,arcfour,rij | |
01d0: 6E 64 61 65 6C 2D 63 62 63 40 6C 79 73 61 74 6F : ndael-cbc@lysato | |
01e0: 72 2E 6C 69 75 2E 73 65 00 00 00 69 68 6D 61 63 : r.liu.se...ihmac | |
01f0: 2D 6D 64 35 2C 68 6D 61 63 2D 73 68 61 31 2C 75 : -md5,hmac-sha1,u | |
0200: 6D 61 63 2D 36 34 40 6F 70 65 6E 73 73 68 2E 63 : mac-64@openssh.c | |
0210: 6F 6D 2C 68 6D 61 63 2D 72 69 70 65 6D 64 31 36 : om,hmac-ripemd16 | |
0220: 30 2C 68 6D 61 63 2D 72 69 70 65 6D 64 31 36 30 : 0,hmac-ripemd160 | |
0230: 40 6F 70 65 6E 73 73 68 2E 63 6F 6D 2C 68 6D 61 : @openssh.com,hma | |
0240: 63 2D 73 68 61 31 2D 39 36 2C 68 6D 61 63 2D 6D : c-sha1-96,hmac-m | |
0250: 64 35 2D 39 36 00 00 00 69 68 6D 61 63 2D 6D 64 : d5-96...ihmac-md | |
0260: 35 2C 68 6D 61 63 2D 73 68 61 31 2C 75 6D 61 63 : 5,hmac-sha1,umac | |
0270: 2D 36 34 40 6F 70 65 6E 73 73 68 2E 63 6F 6D 2C : -64@openssh.com, | |
0280: 68 6D 61 63 2D 72 69 70 65 6D 64 31 36 30 2C 68 : hmac-ripemd160,h | |
0290: 6D 61 63 2D 72 69 70 65 6D 64 31 36 30 40 6F 70 : mac-ripemd160@op | |
02a0: 65 6E 73 73 68 2E 63 6F 6D 2C 68 6D 61 63 2D 73 : enssh.com,hmac-s | |
02b0: 68 61 31 2D 39 36 2C 68 6D 61 63 2D 6D 64 35 2D : ha1-96,hmac-md5- | |
02c0: 39 36 00 00 00 15 6E 6F 6E 65 2C 7A 6C 69 62 40 : 96....none,zlib@ | |
02d0: 6F 70 65 6E 73 73 68 2E 63 6F 6D 00 00 00 15 6E : openssh.com....n | |
02e0: 6F 6E 65 2C 7A 6C 69 62 40 6F 70 65 6E 73 73 68 : one,zlib@openssh | |
02f0: 2E 63 6F 6D 00 00 00 00 00 00 00 00 00 00 00 00 : .com............ | |
0300: 00 : . | |
[libssh2] 0.495958 Transport: Packet type 20 received, length=769 | |
[libssh2] 0.495975 Transport: Looking for packet of type: 20 | |
[libssh2] 0.495986 Key Ex: Agreed on KEX method: diffie-hellman-group14-sha1 | |
[libssh2] 0.495993 Key Ex: Agreed on HOSTKEY method: ssh-rsa | |
[libssh2] 0.495998 Key Ex: Agreed on CRYPT_CS method: aes128-ctr | |
[libssh2] 0.496003 Key Ex: Agreed on CRYPT_SC method: aes128-ctr | |
[libssh2] 0.496008 Key Ex: Agreed on MAC_CS method: hmac-sha1 | |
[libssh2] 0.496014 Key Ex: Agreed on MAC_SC method: hmac-sha1 | |
[libssh2] 0.496019 Key Ex: Agreed on COMP_CS method: none | |
[libssh2] 0.496024 Key Ex: Agreed on COMP_SC method: none | |
[libssh2] 0.496037 Key Ex: Initiating Diffie-Hellman Group14 Key Exchange | |
[libssh2] 0.500238 Key Ex: Sending KEX packet 30 | |
=> libssh2_transport_write plain (262 bytes) | |
0000: 1E 00 00 01 01 00 E4 14 D9 0B 7E AB CE C6 CE 17 : ..........~..... | |
0010: C4 70 A9 95 B4 E9 56 0A E7 3B 32 7C 2B DF 45 B8 : .p....V..;2|+.E. | |
0020: 86 4C 29 63 73 88 A0 A0 62 F7 62 F8 0B 21 85 44 : .L)cs...b.b..!.D | |
0030: 8E FC DA 83 61 1C 0E F1 E0 7D A8 C5 2C B5 14 B4 : ....a....}..,... | |
0040: 29 FB 9D B4 3F 15 C3 3B E8 9B 87 67 F0 EF 44 03 : )...?..;...g..D. | |
0050: 05 4C D1 FC 29 87 F5 0F 4A 34 84 E2 03 2B 0C 26 : .L..)...J4...+.& | |
0060: CD 88 30 E8 BF AF E4 19 8C AD BA A0 6B FA 94 5D : ..0.........k..] | |
0070: F2 2A AE AD D0 DE 5A F0 8A 44 C8 71 AA B0 BE 12 : .*....Z..D.q.... | |
0080: 10 37 C1 1D 75 70 29 58 F0 66 C5 06 FB 51 CA 69 : .7..up)X.f...Q.i | |
0090: DF 99 70 68 81 D1 B0 9A 58 A7 52 10 1C 25 D0 69 : ..ph....X.R..%.i | |
00a0: 95 C3 C6 8E 04 FE 16 4E DA A7 A7 73 C6 22 DA EF : .......N...s.".. | |
00b0: 18 73 37 47 19 D5 A1 5D 0E D0 00 24 6B F6 19 EF : .s7G...]...$k... | |
00c0: 54 3F 55 DA 62 7D 7B 6D A2 86 9C 04 57 C2 88 20 : T?U.b}{m....W.. | |
00d0: B1 AC B0 E8 D6 2D 51 B6 F0 51 73 80 F3 29 A4 CB : .....-Q..Qs..).. | |
00e0: 9C 9B 9A F8 EA 24 BA BD 6A 68 81 BF 7B AC 97 A0 : .....$..jh..{... | |
00f0: 10 FB A5 8A D3 0E 27 C8 2E 47 C9 3F FF BF 48 25 : ......'..G.?..H% | |
0100: B0 AA 9C C3 DA 69 : .....i | |
[libssh2] 0.500351 Socket: Sent 272/272 bytes at 0x984fbe0 | |
=> libssh2_transport_write send() (272 bytes) | |
0000: 00 00 01 0C 05 1E 00 00 01 01 00 E4 14 D9 0B 7E : ...............~ | |
0010: AB CE C6 CE 17 C4 70 A9 95 B4 E9 56 0A E7 3B 32 : ......p....V..;2 | |
0020: 7C 2B DF 45 B8 86 4C 29 63 73 88 A0 A0 62 F7 62 : |+.E..L)cs...b.b | |
0030: F8 0B 21 85 44 8E FC DA 83 61 1C 0E F1 E0 7D A8 : ..!.D....a....}. | |
0040: C5 2C B5 14 B4 29 FB 9D B4 3F 15 C3 3B E8 9B 87 : .,...)...?..;... | |
0050: 67 F0 EF 44 03 05 4C D1 FC 29 87 F5 0F 4A 34 84 : g..D..L..)...J4. | |
0060: E2 03 2B 0C 26 CD 88 30 E8 BF AF E4 19 8C AD BA : ..+.&..0........ | |
0070: A0 6B FA 94 5D F2 2A AE AD D0 DE 5A F0 8A 44 C8 : .k..].*....Z..D. | |
0080: 71 AA B0 BE 12 10 37 C1 1D 75 70 29 58 F0 66 C5 : q.....7..up)X.f. | |
0090: 06 FB 51 CA 69 DF 99 70 68 81 D1 B0 9A 58 A7 52 : ..Q.i..ph....X.R | |
00a0: 10 1C 25 D0 69 95 C3 C6 8E 04 FE 16 4E DA A7 A7 : ..%.i.......N... | |
00b0: 73 C6 22 DA EF 18 73 37 47 19 D5 A1 5D 0E D0 00 : s."...s7G...]... | |
00c0: 24 6B F6 19 EF 54 3F 55 DA 62 7D 7B 6D A2 86 9C : $k...T?U.b}{m... | |
00d0: 04 57 C2 88 20 B1 AC B0 E8 D6 2D 51 B6 F0 51 73 : .W.. .....-Q..Qs | |
00e0: 80 F3 29 A4 CB 9C 9B 9A F8 EA 24 BA BD 6A 68 81 : ..).......$..jh. | |
00f0: BF 7B AC 97 A0 10 FB A5 8A D3 0E 27 C8 2E 47 C9 : .{.........'..G. | |
0100: 3F FF BF 48 25 B0 AA 9C C3 DA 69 CA 12 04 47 F9 : ?..H%.....i...G. | |
[libssh2] 0.500436 Transport: Looking for packet of type: 31 | |
[libssh2] 0.500444 Socket: Error recving 16384 bytes to 0x984a7d0+0: 11 | |
[libssh2] 0.500453 Failure Event: -37 - Unable to exchange encryption keys | |
[libssh2] 0.522860 Socket: Recved 848/16384 bytes to 0x984a7d0+0 | |
=> libssh2_transport_read() raw (848 bytes) | |
0000: 00 00 03 3C 0A 1F 00 00 01 15 00 00 00 07 73 73 : ...<..........ss | |
0010: 68 2D 72 73 61 00 00 00 01 23 00 00 01 01 00 BF : h-rsa....#...... | |
0020: 42 5B C5 66 5B 1E EA 10 C2 B7 2F F2 54 57 1B DA : B[.f[...../.TW.. | |
0030: A6 31 55 B7 B3 60 A2 01 2A 1B FA 47 FF 90 71 3A : .1U..`..*..G..q: | |
0040: 46 20 18 B3 E8 6F DF 44 D0 C2 DD 5D 2A D0 00 34 : F ...o.D...]*..4 | |
0050: C6 68 0C 7C E6 FD F5 92 14 4A 04 85 B1 41 A8 AA : .h.|.....J...A.. | |
0060: 37 C6 0D A8 69 25 A3 B8 B7 C2 0B C8 03 80 34 FA : 7...i%........4. | |
0070: 89 7E 86 B5 AB FB 34 C7 6C 5D 35 8C 59 82 83 8F : .~....4.l]5.Y... | |
0080: 60 DF 92 77 E0 6D B8 07 20 05 D2 52 D3 FA 10 0D : `..w.m.. ..R.... | |
0090: 57 9D 07 01 78 FC 16 18 1C 92 46 D5 0A 94 2A 15 : W...x.....F...*. | |
00a0: C1 03 2A 99 C7 37 55 D9 06 79 CE 8A C8 E0 BA 41 : ..*..7U..y.....A | |
00b0: CD D0 55 25 E6 DC 93 71 7C B0 0A 07 1B 98 17 D9 : ..U%...q|....... | |
00c0: 11 68 18 C6 00 35 B1 5B B5 91 BE 05 4D 0D ED CA : .h...5.[....M... | |
00d0: 89 2D 89 09 0F 71 C2 80 09 53 73 7F 11 F8 28 F4 : .-...q...Ss...(. | |
00e0: 20 A1 85 A7 73 AE BF 6F 28 12 30 66 99 A0 DC B3 : ...s..o(.0f.... | |
00f0: A1 24 7D A7 60 7E 4D 11 FE 33 77 E5 3F 9E 75 17 : .$}.`~M..3w.?.u. | |
0100: 1C 4E 93 57 A0 16 7C 6D 07 08 AA 41 93 97 60 B3 : .N.W..|m...A..`. | |
0110: 37 55 76 52 3D 94 27 79 A3 72 BE E2 57 2A 91 00 : 7UvR=.'y.r..W*.. | |
0120: 00 01 00 16 38 05 3F 84 01 0C 3A B3 EA 53 D4 58 : ....8.?...:..S.X | |
0130: 7B 2E FB 6B 3B A8 C1 7B A7 6C 29 BA 15 56 59 6F : {..k;..{.l)..VYo | |
0140: C2 BF 73 69 19 89 C1 57 90 9B 4E 32 3B E0 14 A8 : ..si...W..N2;... | |
0150: 2E E5 6C FA 29 00 21 AB E5 EA 31 5C 44 0F 1B 48 : ..l.).!...1\D..H | |
0160: 6B E9 B9 D2 B2 E1 26 B6 5C 2F E9 82 27 55 BD 56 : k.....&.\/..'U.V | |
0170: F3 B2 4A DF 89 02 ED 5D 2D D6 99 21 C4 EF 81 7A : ..J....]-..!...z | |
0180: 93 56 7E 5F 3C 98 77 A5 2E B5 E8 06 E2 C1 19 96 : .V~_<.w......... | |
0190: 3F 83 92 DC 2E 84 14 F8 93 B2 F5 CD 6B 03 E7 06 : ?...........k... | |
01a0: CA 7A F3 33 09 6B 56 9F 09 9E B8 B7 67 0A A2 0D : .z.3.kV.....g... | |
01b0: 87 79 09 A6 5C B6 AE C7 A4 DC 26 5F 37 D4 E9 00 : .y..\.....&_7... | |
01c0: A9 CB 40 9A 9D 2F 5D AD 71 A4 EA 68 B4 EC 46 7F : ..@../].q..h..F. | |
01d0: 8B 71 DA EC E1 4F 59 59 E5 68 FA 96 82 7B B5 57 : .q...OYY.h...{.W | |
01e0: 22 A7 79 FC 1F 68 7F 6E 7C B3 71 AC 0D A1 E5 9F : ".y..h.n|.q..... | |
01f0: EA C3 56 9A 31 79 0B 24 1C 20 0D DE 66 9F 53 EA : ..V.1y.$. ..f.S. | |
0200: F9 BE 39 B9 75 B9 CD 55 B5 8F 28 03 B2 09 79 AD : ..9.u..U..(...y. | |
0210: 8D F3 B7 02 21 18 B6 E1 14 9B C1 D4 56 48 62 4B : ....!.......VHbK | |
0220: 84 2A A7 00 00 01 0F 00 00 00 07 73 73 68 2D 72 : .*.........ssh-r | |
0230: 73 61 00 00 01 00 A0 C7 B4 F3 57 10 80 8F 19 22 : sa........W...." | |
0240: 75 98 C8 1F 6F A0 EB 5A FC 10 6D 79 B0 53 D5 A4 : u...o..Z..my.S.. | |
0250: D5 4E EB 89 0C 03 18 8D 45 5C 9E 88 F5 DB F0 79 : .N......E\.....y | |
0260: 17 9B A1 50 2E C9 EA E8 26 0E 4D 7D FA C5 81 7B : ...P....&.M}...{ | |
0270: F7 07 64 F5 52 BC 95 53 75 A4 2E 5B E2 96 08 56 : ..d.R..Su..[...V | |
0280: D0 EA FF C6 49 E8 4C A9 AB 03 B5 75 D8 48 8F 0D : ....I.L....u.H.. | |
0290: 0B 72 6C DD 08 6C F5 FB 04 7F 4E 8C 77 57 7C F6 : .rl..l....N.wW|. | |
02a0: E7 B3 BE 32 90 EB 57 9C DB F1 D0 FE 0D 3E 76 58 : ...2..W......>vX | |
02b0: 5A E2 C1 9B 45 E3 D1 FD 97 E0 72 DC 26 85 7B C5 : Z...E.....r.&.{. | |
02c0: 49 59 E8 A4 4F F5 BD 74 E5 02 2C 63 ED 08 A1 13 : IY..O..t..,c.... | |
02d0: AA 34 41 A4 26 C2 A4 26 1C 38 21 18 89 8A E7 72 : .4A.&..&.8!....r | |
02e0: 6F C5 EE 8B B5 53 A3 B0 43 0D D6 00 19 6F 83 A1 : o....S..C....o.. | |
02f0: C6 F2 AC 01 C3 75 BC B6 52 9E 39 75 72 3F A9 12 : .....u..R.9ur?.. | |
0300: ED 49 7D 5C 04 B2 9B CC D6 7E 0C 6A 47 09 C5 10 : .I}\.....~.jG... | |
0310: 63 6B B6 B1 A4 8B 31 3B 52 C1 A5 B8 3F 88 75 0F : ck....1;R...?.u. | |
0320: 1E 4E 1B 45 F5 B5 60 75 87 E0 DE 58 74 3B E9 FE : .N.E..`u...Xt;.. | |
0330: F0 4E B1 D4 83 5A 00 00 00 00 00 00 00 00 00 00 : .N...Z.......... | |
0340: 00 00 00 0C 0A 15 00 00 00 00 00 00 00 00 00 00 : ................ | |
=> libssh2_transport_read() plain (817 bytes) | |
0000: 1F 00 00 01 15 00 00 00 07 73 73 68 2D 72 73 61 : .........ssh-rsa | |
0010: 00 00 00 01 23 00 00 01 01 00 BF 42 5B C5 66 5B : ....#......B[.f[ | |
0020: 1E EA 10 C2 B7 2F F2 54 57 1B DA A6 31 55 B7 B3 : ...../.TW...1U.. | |
0030: 60 A2 01 2A 1B FA 47 FF 90 71 3A 46 20 18 B3 E8 : `..*..G..q:F ... | |
0040: 6F DF 44 D0 C2 DD 5D 2A D0 00 34 C6 68 0C 7C E6 : o.D...]*..4.h.|. | |
0050: FD F5 92 14 4A 04 85 B1 41 A8 AA 37 C6 0D A8 69 : ....J...A..7...i | |
0060: 25 A3 B8 B7 C2 0B C8 03 80 34 FA 89 7E 86 B5 AB : %........4..~... | |
0070: FB 34 C7 6C 5D 35 8C 59 82 83 8F 60 DF 92 77 E0 : .4.l]5.Y...`..w. | |
0080: 6D B8 07 20 05 D2 52 D3 FA 10 0D 57 9D 07 01 78 : m.. ..R....W...x | |
0090: FC 16 18 1C 92 46 D5 0A 94 2A 15 C1 03 2A 99 C7 : .....F...*...*.. | |
00a0: 37 55 D9 06 79 CE 8A C8 E0 BA 41 CD D0 55 25 E6 : 7U..y.....A..U%. | |
00b0: DC 93 71 7C B0 0A 07 1B 98 17 D9 11 68 18 C6 00 : ..q|........h... | |
00c0: 35 B1 5B B5 91 BE 05 4D 0D ED CA 89 2D 89 09 0F : 5.[....M....-... | |
00d0: 71 C2 80 09 53 73 7F 11 F8 28 F4 20 A1 85 A7 73 : q...Ss...(. ...s | |
00e0: AE BF 6F 28 12 30 66 99 A0 DC B3 A1 24 7D A7 60 : ..o(.0f.....$}.` | |
00f0: 7E 4D 11 FE 33 77 E5 3F 9E 75 17 1C 4E 93 57 A0 : ~M..3w.?.u..N.W. | |
0100: 16 7C 6D 07 08 AA 41 93 97 60 B3 37 55 76 52 3D : .|m...A..`.7UvR= | |
0110: 94 27 79 A3 72 BE E2 57 2A 91 00 00 01 00 16 38 : .'y.r..W*......8 | |
0120: 05 3F 84 01 0C 3A B3 EA 53 D4 58 7B 2E FB 6B 3B : .?...:..S.X{..k; | |
0130: A8 C1 7B A7 6C 29 BA 15 56 59 6F C2 BF 73 69 19 : ..{.l)..VYo..si. | |
0140: 89 C1 57 90 9B 4E 32 3B E0 14 A8 2E E5 6C FA 29 : ..W..N2;.....l.) | |
0150: 00 21 AB E5 EA 31 5C 44 0F 1B 48 6B E9 B9 D2 B2 : .!...1\D..Hk.... | |
0160: E1 26 B6 5C 2F E9 82 27 55 BD 56 F3 B2 4A DF 89 : .&.\/..'U.V..J.. | |
0170: 02 ED 5D 2D D6 99 21 C4 EF 81 7A 93 56 7E 5F 3C : ..]-..!...z.V~_< | |
0180: 98 77 A5 2E B5 E8 06 E2 C1 19 96 3F 83 92 DC 2E : .w.........?.... | |
0190: 84 14 F8 93 B2 F5 CD 6B 03 E7 06 CA 7A F3 33 09 : .......k....z.3. | |
01a0: 6B 56 9F 09 9E B8 B7 67 0A A2 0D 87 79 09 A6 5C : kV.....g....y..\ | |
01b0: B6 AE C7 A4 DC 26 5F 37 D4 E9 00 A9 CB 40 9A 9D : .....&_7.....@.. | |
01c0: 2F 5D AD 71 A4 EA 68 B4 EC 46 7F 8B 71 DA EC E1 : /].q..h..F..q... | |
01d0: 4F 59 59 E5 68 FA 96 82 7B B5 57 22 A7 79 FC 1F : OYY.h...{.W".y.. | |
01e0: 68 7F 6E 7C B3 71 AC 0D A1 E5 9F EA C3 56 9A 31 : h.n|.q.......V.1 | |
01f0: 79 0B 24 1C 20 0D DE 66 9F 53 EA F9 BE 39 B9 75 : y.$. ..f.S...9.u | |
0200: B9 CD 55 B5 8F 28 03 B2 09 79 AD 8D F3 B7 02 21 : ..U..(...y.....! | |
0210: 18 B6 E1 14 9B C1 D4 56 48 62 4B 84 2A A7 00 00 : .......VHbK.*... | |
0220: 01 0F 00 00 00 07 73 73 68 2D 72 73 61 00 00 01 : ......ssh-rsa... | |
0230: 00 A0 C7 B4 F3 57 10 80 8F 19 22 75 98 C8 1F 6F : .....W...."u...o | |
0240: A0 EB 5A FC 10 6D 79 B0 53 D5 A4 D5 4E EB 89 0C : ..Z..my.S...N... | |
0250: 03 18 8D 45 5C 9E 88 F5 DB F0 79 17 9B A1 50 2E : ...E\.....y...P. | |
0260: C9 EA E8 26 0E 4D 7D FA C5 81 7B F7 07 64 F5 52 : ...&.M}...{..d.R | |
0270: BC 95 53 75 A4 2E 5B E2 96 08 56 D0 EA FF C6 49 : ..Su..[...V....I | |
0280: E8 4C A9 AB 03 B5 75 D8 48 8F 0D 0B 72 6C DD 08 : .L....u.H...rl.. | |
0290: 6C F5 FB 04 7F 4E 8C 77 57 7C F6 E7 B3 BE 32 90 : l....N.wW|....2. | |
02a0: EB 57 9C DB F1 D0 FE 0D 3E 76 58 5A E2 C1 9B 45 : .W......>vXZ...E | |
02b0: E3 D1 FD 97 E0 72 DC 26 85 7B C5 49 59 E8 A4 4F : .....r.&.{.IY..O | |
02c0: F5 BD 74 E5 02 2C 63 ED 08 A1 13 AA 34 41 A4 26 : ..t..,c.....4A.& | |
02d0: C2 A4 26 1C 38 21 18 89 8A E7 72 6F C5 EE 8B B5 : ..&.8!....ro.... | |
02e0: 53 A3 B0 43 0D D6 00 19 6F 83 A1 C6 F2 AC 01 C3 : S..C....o....... | |
02f0: 75 BC B6 52 9E 39 75 72 3F A9 12 ED 49 7D 5C 04 : u..R.9ur?...I}\. | |
0300: B2 9B CC D6 7E 0C 6A 47 09 C5 10 63 6B B6 B1 A4 : ....~.jG...ck... | |
0310: 8B 31 3B 52 C1 A5 B8 3F 88 75 0F 1E 4E 1B 45 F5 : .1;R...?.u..N.E. | |
0320: B5 60 75 87 E0 DE 58 74 3B E9 FE F0 4E B1 D4 83 : .`u...Xt;...N... | |
0330: 5A : Z | |
[libssh2] 0.523382 Transport: Packet type 31 received, length=817 | |
[libssh2] 0.523389 Transport: Looking for packet of type: 31 | |
[libssh2] 0.523414 Key Ex: Server's MD5 Fingerprint: 59:10:d3:bb:4a:19:57:c8:c5:48:0c:43:f8:ef:6b:70 | |
[libssh2] 0.523429 Key Ex: Server's SHA1 Fingerprint: 74:3c:fa:22:ec:f8:c6:07:2c:27:c4:57:4c:de:69:f9:07:9d:7d:93 | |
[libssh2] 0.528254 Key Ex: Sending NEWKEYS message | |
=> libssh2_transport_write plain (1 bytes) | |
0000: 15 : . | |
[libssh2] 0.528298 Socket: Sent 16/16 bytes at 0x984fb80 | |
=> libssh2_transport_write send() (16 bytes) | |
0000: 00 00 00 0C 0A 15 88 A3 E0 54 CF 75 09 2C 1E 9D : .........T.u.,.. | |
[libssh2] 0.528314 Transport: Looking for packet of type: 21 | |
=> libssh2_transport_read() plain (1 bytes) | |
0000: 15 : . | |
[libssh2] 0.528338 Transport: Packet type 21 received, length=1 | |
[libssh2] 0.528343 Transport: Looking for packet of type: 21 | |
[libssh2] 0.528348 Key Ex: Received NEWKEYS message | |
[libssh2] 0.528353 Key Ex: session_id calculated | |
[libssh2] 0.528371 Key Ex: Client to Server IV and Key calculated | |
[libssh2] 0.528383 Key Ex: Server to Client IV and Key calculated | |
[libssh2] 0.528391 Key Ex: Client to Server HMAC Key calculated | |
[libssh2] 0.528399 Key Ex: Server to Client HMAC Key calculated | |
[libssh2] 0.528411 Transport: Requesting userauth service | |
=> libssh2_transport_write plain (17 bytes) | |
0000: 05 00 00 00 0C 73 73 68 2D 75 73 65 72 61 75 74 : .....ssh-useraut | |
0010: 68 : h | |
[libssh2] 0.528446 Socket: Sent 52/52 bytes at 0x984f5a0 | |
=> libssh2_transport_write send() (52 bytes) | |
0000: 99 47 D3 A7 78 07 EB 13 A9 8C F7 A6 18 9D 04 0C : .G..x........... | |
0010: E8 CB C7 53 F9 78 C8 2D 81 4B F9 E3 94 65 C5 49 : ...S.x.-.K...e.I | |
0020: 6D 9F 0E 37 A4 DA 07 65 54 15 F5 4D DC 52 CC 29 : m..7...eT..M.R.) | |
0030: 4B D6 E4 B9 : K... | |
[libssh2] 0.528471 Transport: Looking for packet of type: 6 | |
[libssh2] 0.528478 Socket: Error recving 16384 bytes to 0x984a7d0+0: 11 | |
[libssh2] 0.567588 Socket: Recved 52/16384 bytes to 0x984a7d0+0 | |
=> libssh2_transport_read() raw (52 bytes) | |
0000: AB 3D EF 79 3D C2 21 57 79 93 88 CA 23 EF 68 38 : .=.y=.!Wy...#.h8 | |
0010: 4E B2 26 65 3A 61 4F 96 AE 46 85 70 F3 35 0C 8A : N.&e:aO..F.p.5.. | |
0020: D9 F7 4F 67 17 15 A0 A5 24 15 64 EA 5B B3 5E D8 : ..Og....$.d.[.^. | |
0030: 93 1B 59 5E : ..Y^ | |
=> libssh2_transport_read() plain (17 bytes) | |
0000: 06 00 00 00 0C 73 73 68 2D 75 73 65 72 61 75 74 : .....ssh-useraut | |
0010: 68 : h | |
[libssh2] 0.567651 Transport: Packet type 6 received, length=17 | |
[libssh2] 0.567658 Transport: Looking for packet of type: 6 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment