Skip to content

Instantly share code, notes, and snippets.

@timmartin
timmartin / gist:556b8552735312c0093b4594053c6335
Created January 27, 2018 16:52
Terraform rules for CloudWatch events triggering CodeBuild
provider "aws" {
region = "us-east-1"
}
resource "aws_codecommit_repository" "test" {
repository_name = "BuildTestRepository"
}
resource "aws_codebuild_project" "build_test" {
name = "BuildTest"
[libssh2] 0.609800 Transport: session_startup for socket 3
[libssh2] 0.612121 Transport: Sending Banner: SSH-2.0-libssh2_1.2.7
[libssh2] 0.612400 Failure Event: -37 - Failed getting banner
[libssh2] 0.623378 Transport: Received Banner: SSH-1.99-OpenSSH_2.3.0_Mikrotik_v2.9
[libssh2] 0.625065 Key Ex: Sent KEX: diffie-hellman-group1-sha1
[libssh2] 0.625099 Key Ex: Sent HOSTKEY: ssh-rsa,ssh-dss
[libssh2] 0.625119 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.625137 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.625198 Key Ex: Sent MAC_CS: hmac-sha1,hmac-sha1-96,hmac-md5,hmac-md5-96,hmac-ripemd160,hmac-ripemd160@openssh.com
[libssh2] 0.625222 Key Ex: Sent MAC_SC: hmac-sha1,hmac-sha1-96,hmac-md5,hmac-md5-96,hmac-ripemd160,hmac-ripemd160@openssh.com
[libssh2] 0.275116 Transport: session_startup for socket 3
[libssh2] 0.275659 Transport: Sending Banner: SSH-2.0-libssh2_1.2.7
[libssh2] 0.276014 Transport: Received Banner: SSH-1.99-OpenSSH_2.3.0_Mikrotik_v2.9
[libssh2] 0.278507 Key Ex: Sent KEX: diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
[libssh2] 0.278628 Key Ex: Sent HOSTKEY: ssh-rsa,ssh-dss
[libssh2] 0.278647 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.278666 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.278685 Key Ex: Sent MAC_CS: hmac-sha1,hmac-sha1-96,hmac-md5,hmac-md5-96,hmac-ripemd160,hmac-ripemd160@openssh.com
[libssh2] 0.278704 Key Ex: Sent MAC_SC: hmac-sha1,hmac-sha1-96,hmac-md5,hmac-md5-96,hmac-ripemd160,hmac-ripemd160@openssh.com
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <libssh2.h>
int main (int argc, char ** argv)
{