This project is read-only.

Hangs when executing command

Apr 20, 2011 at 1:26 PM

Hi, I´ve just started using this SSH library in a small Visual Basic project and I´ve run into a problem.

I´m trying to connect to a Watchguard Firewall and execute a command and display it´s output.

The initial connection seems to work since I get an error if a use the wrong pass, and I can also see the new connection in the firewall.

But when I run any command the applications just hangs forever. And if I set the timeout value it correctly times out so the application can continue but I can´t figure out why it won´t run the command.

 Using client As New SshClient("10.10.10.1", 4118, "user", "pass")
            client.Connect()

            Dim cmd As SshCommand
            Dim result As String
            Dim result2 As String

            cmd = client.CreateCommand("who")
            cmd.CommandTimeout = TimeSpan.FromSeconds(10)
            result = cmd.Execute
            result2 = cmd.Error
            RichTextBox1.Text = cmd.ExitStatus

            If String.IsNullOrEmpty(result2) Then
                RichTextBox1.Text = result2
            End If

            RichTextBox1.Text = result

            client.Disconnect()
End Using

Any idea what the problem could be?

Apr 20, 2011 at 2:32 PM

I small update.

I tried my code against a FreeBSD server and that worked perfectly!

The only difference(besides another ip, user and pass..) is that is uses the standard port 22 while the Watchguard uses 4118, but that shouldn´t be an issue I hope?

Using Putty I can connect to both devices without any problem at all.

So I figure that the Watchguard must be requiring something extra? Is there a way to probe the devices for required features?

Or what else could be the problem?

Any help is much appreciated!

Thanks!

//Andreas..

Apr 20, 2011 at 2:45 PM

Andres,

 

Thanks for additional info.

There should be no issue with the port number as it doesnt matter what port to connect, as long as it can connect.

 

Since putty works correctly against this device my guess is that I might be missing some messages, server probably waits for the message to arrive from the client, or client waits for message from the server.

I had similar problem before with another server, where I found that the server was expecting some message to arrive so I assume this is similar situation.

 

Is it possible for me to get a test account on that machine so I could see where it hungs?

If not is it possible to get Putty log when you connect to this machine? I just need to see what packets it sends back and forth and see what I am missing.

Or may be Watchguard is some kind of opensource server which I could install on virtual machine, if so please let me know where to get it and I will try to install it and track this problem down.

 

Thanks,

Oleg

Apr 20, 2011 at 3:01 PM

Hi Oleg!

Thanks for your reply!

The Watchguard is a hardware firewall(http://www.watchguard.com/products/xtm-2/overview.asp). I think it exist as a vmware virtual machine as well, but don´t know if its freely downloadable.

I´ll look into if it´possible to get you a test account with my admin to access it externally, but it might be impossible.

The Putty log for the Watchguard is:

2011-04-20 15:57:51    Looking up host "10.10.10.1"
2011-04-20 15:57:51    Connecting to 10.10.10.1 port 4118
2011-04-20 15:57:51    Server version: SSH-2.0-WatchGuard
2011-04-20 15:57:51    We claim version: SSH-2.0-PuTTY_Release_0.60
2011-04-20 15:57:51    Using SSH protocol version 2
2011-04-20 15:57:51    Doing Diffie-Hellman group exchange
2011-04-20 15:57:51    Doing Diffie-Hellman key exchange with hash SHA-256
2011-04-20 15:57:54    Host key fingerprint is:
2011-04-20 15:57:54    ssh-dss 1024 86:3a:07:46:64:9b:a8:48:bf:dc:85:e0:af:65:85:e8
2011-04-20 15:57:54    Initialised AES-256 CBC client->server encryption
2011-04-20 15:57:54    Initialised HMAC-SHA1 client->server MAC algorithm
2011-04-20 15:57:54    Initialised AES-256 CBC server->client encryption
2011-04-20 15:57:54    Initialised HMAC-SHA1 server->client MAC algorithm
2011-04-20 15:58:01    Access granted
2011-04-20 15:58:01    Opened channel for session
2011-04-20 15:58:02    Allocated pty (ospeed 38400bps, ispeed 38400bps)
2011-04-20 15:58:02    Started a shell/command

The difference I can see when comparing to my FreeBSD machine is key fingerprint which is "ssh-rsa 2048.." and "AES-256 SDCTR".

Otherwise it looks similar.

 

//Andreas..

Apr 20, 2011 at 3:19 PM

ok,

yea, let me know if it would be possible.

 

Meanwhile, could you extended putty log to include packet information?

It should have things like SSH2_KEYEX and other messages included.

 

Thanks,

Oleg

Apr 20, 2011 at 3:34 PM

I think I maxed the log file now. It´s huge so I hope you find what you need from this. ;)

 

=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2011.04.20 16:30:06 =~=~=~=~=~=~=~=~=~=~=~=
Event Log: Writing new session log (SSH raw data mode) to file: putty.log
Event Log: Looking up host "10.10.10.1"
Event Log: Connecting to 10.10.10.1 port 4118
Incoming raw data
  00000000  53 53 48 2d 32 2e 30 2d 57 61 74 63 68 47 75 61  SSH-2.0-WatchGua
  00000010  72 64 0a                                         rd.
Event Log: Server version: SSH-2.0-WatchGuard
Event Log: We claim version: SSH-2.0-PuTTY_Release_0.60
Outgoing raw data
  00000000  53 53 48 2d 32 2e 30 2d 50 75 54 54 59 5f 52 65  SSH-2.0-PuTTY_Re
  00000010  6c 65 61 73 65 5f 30 2e 36 30 0d 0a              lease_0.60..
Outgoing packet type 20 / 0x14 (SSH2_MSG_KEXINIT)
  00000000  42 82 c9 12 99 e7 84 b8 2a ce 2a 50 27 88 c1 6c  B.......*.*P'..l
  00000010  00 00 00 7e 64 69 66 66 69 65 2d 68 65 6c 6c 6d  ...~diffie-hellm
  00000020  61 6e 2d 67 72 6f 75 70 2d 65 78 63 68 61 6e 67  an-group-exchang
  00000030  65 2d 73 68 61 32 35 36 2c 64 69 66 66 69 65 2d  e-sha256,diffie-
  00000040  68 65 6c 6c 6d 61 6e 2d 67 72 6f 75 70 2d 65 78  hellman-group-ex
  00000050  63 68 61 6e 67 65 2d 73 68 61 31 2c 64 69 66 66  change-sha1,diff
  00000060  69 65 2d 68 65 6c 6c 6d 61 6e 2d 67 72 6f 75 70  ie-hellman-group
  00000070  31 34 2d 73 68 61 31 2c 64 69 66 66 69 65 2d 68  14-sha1,diffie-h
  00000080  65 6c 6c 6d 61 6e 2d 67 72 6f 75 70 31 2d 73 68  ellman-group1-sh
  00000090  61 31 00 00 00 0f 73 73 68 2d 72 73 61 2c 73 73  a1....ssh-rsa,ss
  000000a0  68 2d 64 73 73 00 00 00 9f 61 65 73 32 35 36 2d  h-dss....aes256-
  000000b0  63 74 72 2c 61 65 73 32 35 36 2d 63 62 63 2c 72  ctr,aes256-cbc,r
  000000c0  69 6a 6e 64 61 65 6c 2d 63 62 63 40 6c 79 73 61  ijndael-cbc@lysa
  000000d0  74 6f 72 2e 6c 69 75 2e 73 65 2c 61 65 73 31 39  tor.liu.se,aes19
  000000e0  32 2d 63 74 72 2c 61 65 73 31 39 32 2d 63 62 63  2-ctr,aes192-cbc
  000000f0  2c 61 65 73 31 32 38 2d 63 74 72 2c 61 65 73 31  ,aes128-ctr,aes1
  00000100  32 38 2d 63 62 63 2c 62 6c 6f 77 66 69 73 68 2d  28-cbc,blowfish-
  00000110  63 74 72 2c 62 6c 6f 77 66 69 73 68 2d 63 62 63  ctr,blowfish-cbc
  00000120  2c 33 64 65 73 2d 63 74 72 2c 33 64 65 73 2d 63  ,3des-ctr,3des-c
  00000130  62 63 2c 61 72 63 66 6f 75 72 32 35 36 2c 61 72  bc,arcfour256,ar
  00000140  63 66 6f 75 72 31 32 38 00 00 00 9f 61 65 73 32  cfour128....aes2
  00000150  35 36 2d 63 74 72 2c 61 65 73 32 35 36 2d 63 62  56-ctr,aes256-cb
  00000160  63 2c 72 69 6a 6e 64 61 65 6c 2d 63 62 63 40 6c  c,rijndael-cbc@l
  00000170  79 73 61 74 6f 72 2e 6c 69 75 2e 73 65 2c 61 65  ysator.liu.se,ae
  00000180  73 31 39 32 2d 63 74 72 2c 61 65 73 31 39 32 2d  s192-ctr,aes192-
  00000190  63 62 63 2c 61 65 73 31 32 38 2d 63 74 72 2c 61  cbc,aes128-ctr,a
  000001a0  65 73 31 32 38 2d 63 62 63 2c 62 6c 6f 77 66 69  es128-cbc,blowfi
  000001b0  73 68 2d 63 74 72 2c 62 6c 6f 77 66 69 73 68 2d  sh-ctr,blowfish-
  000001c0  63 62 63 2c 33 64 65 73 2d 63 74 72 2c 33 64 65  cbc,3des-ctr,3de
  000001d0  73 2d 63 62 63 2c 61 72 63 66 6f 75 72 32 35 36  s-cbc,arcfour256
  000001e0  2c 61 72 63 66 6f 75 72 31 32 38 00 00 00 1f 68  ,arcfour128....h
  000001f0  6d 61 63 2d 73 68 61 31 2c 68 6d 61 63 2d 73 68  mac-sha1,hmac-sh
  00000200  61 31 2d 39 36 2c 68 6d 61 63 2d 6d 64 35 00 00  a1-96,hmac-md5..
  00000210  00 1f 68 6d 61 63 2d 73 68 61 31 2c 68 6d 61 63  ..hmac-sha1,hmac
  00000220  2d 73 68 61 31 2d 39 36 2c 68 6d 61 63 2d 6d 64  -sha1-96,hmac-md
  00000230  35 00 00 00 09 6e 6f 6e 65 2c 7a 6c 69 62 00 00  5....none,zlib..
  00000240  00 09 6e 6f 6e 65 2c 7a 6c 69 62 00 00 00 00 00  ..none,zlib.....
  00000250  00 00 00 00 00 00 00 00                          ........
Outgoing raw data
  00000000  00 00 02 64 0a 14 42 82 c9 12 99 e7 84 b8 2a ce  ...d..B.......*.
  00000010  2a 50 27 88 c1 6c 00 00 00 7e 64 69 66 66 69 65  *P'..l...~diffie
  00000020  2d 68 65 6c 6c 6d 61 6e 2d 67 72 6f 75 70 2d 65  -hellman-group-e
  00000030  78 63 68 61 6e 67 65 2d 73 68 61 32 35 36 2c 64  xchange-sha256,d
  00000040  69 66 66 69 65 2d 68 65 6c 6c 6d 61 6e 2d 67 72  iffie-hellman-gr
  00000050  6f 75 70 2d 65 78 63 68 61 6e 67 65 2d 73 68 61  oup-exchange-sha
  00000060  31 2c 64 69 66 66 69 65 2d 68 65 6c 6c 6d 61 6e  1,diffie-hellman
  00000070  2d 67 72 6f 75 70 31 34 2d 73 68 61 31 2c 64 69  -group14-sha1,di
  00000080  66 66 69 65 2d 68 65 6c 6c 6d 61 6e 2d 67 72 6f  ffie-hellman-gro
  00000090  75 70 31 2d 73 68 61 31 00 00 00 0f 73 73 68 2d  up1-sha1....ssh-
  000000a0  72 73 61 2c 73 73 68 2d 64 73 73 00 00 00 9f 61  rsa,ssh-dss....a
  000000b0  65 73 32 35 36 2d 63 74 72 2c 61 65 73 32 35 36  es256-ctr,aes256
  000000c0  2d 63 62 63 2c 72 69 6a 6e 64 61 65 6c 2d 63 62  -cbc,rijndael-cb
  000000d0  63 40 6c 79 73 61 74 6f 72 2e 6c 69 75 2e 73 65  c@lysator.liu.se
  000000e0  2c 61 65 73 31 39 32 2d 63 74 72 2c 61 65 73 31  ,aes192-ctr,aes1
  000000f0  39 32 2d 63 62 63 2c 61 65 73 31 32 38 2d 63 74  92-cbc,aes128-ct
  00000100  72 2c 61 65 73 31 32 38 2d 63 62 63 2c 62 6c 6f  r,aes128-cbc,blo
  00000110  77 66 69 73 68 2d 63 74 72 2c 62 6c 6f 77 66 69  wfish-ctr,blowfi
  00000120  73 68 2d 63 62 63 2c 33 64 65 73 2d 63 74 72 2c  sh-cbc,3des-ctr,
  00000130  33 64 65 73 2d 63 62 63 2c 61 72 63 66 6f 75 72  3des-cbc,arcfour
  00000140  32 35 36 2c 61 72 63 66 6f 75 72 31 32 38 00 00  256,arcfour128..
  00000150  00 9f 61 65 73 32 35 36 2d 63 74 72 2c 61 65 73  ..aes256-ctr,aes
  00000160  32 35 36 2d 63 62 63 2c 72 69 6a 6e 64 61 65 6c  256-cbc,rijndael
  00000170  2d 63 62 63 40 6c 79 73 61 74 6f 72 2e 6c 69 75  -cbc@lysator.liu
  00000180  2e 73 65 2c 61 65 73 31 39 32 2d 63 74 72 2c 61  .se,aes192-ctr,a
  00000190  65 73 31 39 32 2d 63 62 63 2c 61 65 73 31 32 38  es192-cbc,aes128
  000001a0  2d 63 74 72 2c 61 65 73 31 32 38 2d 63 62 63 2c  -ctr,aes128-cbc,
  000001b0  62 6c 6f 77 66 69 73 68 2d 63 74 72 2c 62 6c 6f  blowfish-ctr,blo
  000001c0  77 66 69 73 68 2d 63 62 63 2c 33 64 65 73 2d 63  wfish-cbc,3des-c
  000001d0  74 72 2c 33 64 65 73 2d 63 62 63 2c 61 72 63 66  tr,3des-cbc,arcf
  000001e0  6f 75 72 32 35 36 2c 61 72 63 66 6f 75 72 31 32  our256,arcfour12
  000001f0  38 00 00 00 1f 68 6d 61 63 2d 73 68 61 31 2c 68  8....hmac-sha1,h
  00000200  6d 61 63 2d 73 68 61 31 2d 39 36 2c 68 6d 61 63  mac-sha1-96,hmac
  00000210  2d 6d 64 35 00 00 00 1f 68 6d 61 63 2d 73 68 61  -md5....hmac-sha
  00000220  31 2c 68 6d 61 63 2d 73 68 61 31 2d 39 36 2c 68  1,hmac-sha1-96,h
  00000230  6d 61 63 2d 6d 64 35 00 00 00 09 6e 6f 6e 65 2c  mac-md5....none,
  00000240  7a 6c 69 62 00 00 00 09 6e 6f 6e 65 2c 7a 6c 69  zlib....none,zli
  00000250  62 00 00 00 00 00 00 00 00 00 00 00 00 00 fb 52  b..............R
  00000260  b7 51 c6 bd 2c bb 41 6d                          .Q..,.Am
Event Log: Using SSH protocol version 2
Incoming raw data
  00000000  00 00 01 74 08 14 b1 25 d4 d0 81 60 eb 0b 8a 4a  ...t...%...`...J
  00000010  7c b5 fa fb 13 00 00 00 00 7e 64 69 66 66 69 65  |........~diffie
  00000020  2d 68 65 6c 6c 6d 61 6e 2d 67 72 6f 75 70 2d 65  -hellman-group-e
  00000030  78 63 68 61 6e 67 65 2d 73 68 61 32 35 36 2c 64  xchange-sha256,d
  00000040  69 66 66 69 65 2d 68 65 6c 6c 6d 61 6e 2d 67 72  iffie-hellman-gr
  00000050  6f 75 70 2d 65 78 63 68 61 6e 67 65 2d 73 68 61  oup-exchange-sha
  00000060  31 2c 64 69 66 66 69 65 2d 68 65 6c 6c 6d 61 6e  1,diffie-hellman
  00000070  2d 67 72 6f 75 70 31 34 2d 73 68 61 31 2c 64 69  -group14-sha1,di
  00000080  66 66 69 65 2d 68 65 6c 6c 6d 61 6e 2d 67 72 6f  ffie-hellman-gro
  00000090  75 70 31 2d 73 68 61 31 00 00 00 07 73 73 68 2d  up1-sha1....ssh-
  000000a0  64 73 73 00 00 00 29 61 65 73 31 32 38 2d 63 62  dss...)aes128-cb
  000000b0  63 2c 33 64 65 73 2d 63 62 63 2c 61 65 73 31 39  c,3des-cbc,aes19
  000000c0  32 2d 63 62 63 2c 61 65 73 32 35 36 2d 63 62 63  2-cbc,aes256-cbc
  000000d0  00 00 00 29 61 65 73 31 32 38 2d 63 62 63 2c 33  ...)aes128-cbc,3
  000000e0  64 65 73 2d 63 62 63 2c 61 65 73 31 39 32 2d 63  des-cbc,aes192-c
  000000f0  62 63 2c 61 65 73 32 35 36 2d 63 62 63 00 00 00  bc,aes256-cbc...
  00000100  16 68 6d 61 63 2d 73 68 61 31 2c 68 6d 61 63 2d  .hmac-sha1,hmac-
  00000110  73 68 61 31 2d 39 36 00 00 00 16 68 6d 61 63 2d  sha1-96....hmac-
  00000120  73 68 61 31 2c 68 6d 61 63 2d 73 68 61 31 2d 39  sha1,hmac-sha1-9
  00000130  36 00 00 00 15 6e 6f 6e 65 2c 7a 6c 69 62 40 6f  6....none,zlib@o
  00000140  70 65 6e 73 73 68 2e 63 6f 6d 00 00 00 15 6e 6f  penssh.com....no
  00000150  6e 65 2c 7a 6c 69 62 40 6f 70 65 6e 73 73 68 2e  ne,zlib@openssh.
  00000160  63 6f 6d 00 00 00 00 00 00 00 00 00 00 00 00 00  com.............
  00000170  00 00 00 00 00 00 00 00                          ........
Incoming packet type 20 / 0x14 (SSH2_MSG_KEXINIT)
  00000000  b1 25 d4 d0 81 60 eb 0b 8a 4a 7c b5 fa fb 13 00  .%...`...J|.....
  00000010  00 00 00 7e 64 69 66 66 69 65 2d 68 65 6c 6c 6d  ...~diffie-hellm
  00000020  61 6e 2d 67 72 6f 75 70 2d 65 78 63 68 61 6e 67  an-group-exchang
  00000030  65 2d 73 68 61 32 35 36 2c 64 69 66 66 69 65 2d  e-sha256,diffie-
  00000040  68 65 6c 6c 6d 61 6e 2d 67 72 6f 75 70 2d 65 78  hellman-group-ex
  00000050  63 68 61 6e 67 65 2d 73 68 61 31 2c 64 69 66 66  change-sha1,diff
  00000060  69 65 2d 68 65 6c 6c 6d 61 6e 2d 67 72 6f 75 70  ie-hellman-group
  00000070  31 34 2d 73 68 61 31 2c 64 69 66 66 69 65 2d 68  14-sha1,diffie-h
  00000080  65 6c 6c 6d 61 6e 2d 67 72 6f 75 70 31 2d 73 68  ellman-group1-sh
  00000090  61 31 00 00 00 07 73 73 68 2d 64 73 73 00 00 00  a1....ssh-dss...
  000000a0  29 61 65 73 31 32 38 2d 63 62 63 2c 33 64 65 73  )aes128-cbc,3des
  000000b0  2d 63 62 63 2c 61 65 73 31 39 32 2d 63 62 63 2c  -cbc,aes192-cbc,
  000000c0  61 65 73 32 35 36 2d 63 62 63 00 00 00 29 61 65  aes256-cbc...)ae
  000000d0  73 31 32 38 2d 63 62 63 2c 33 64 65 73 2d 63 62  s128-cbc,3des-cb
  000000e0  63 2c 61 65 73 31 39 32 2d 63 62 63 2c 61 65 73  c,aes192-cbc,aes
  000000f0  32 35 36 2d 63 62 63 00 00 00 16 68 6d 61 63 2d  256-cbc....hmac-
  00000100  73 68 61 31 2c 68 6d 61 63 2d 73 68 61 31 2d 39  sha1,hmac-sha1-9
  00000110  36 00 00 00 16 68 6d 61 63 2d 73 68 61 31 2c 68  6....hmac-sha1,h
  00000120  6d 61 63 2d 73 68 61 31 2d 39 36 00 00 00 15 6e  mac-sha1-96....n
  00000130  6f 6e 65 2c 7a 6c 69 62 40 6f 70 65 6e 73 73 68  one,zlib@openssh
  00000140  2e 63 6f 6d 00 00 00 15 6e 6f 6e 65 2c 7a 6c 69  .com....none,zli
  00000150  62 40 6f 70 65 6e 73 73 68 2e 63 6f 6d 00 00 00  b@openssh.com...
  00000160  00 00 00 00 00 00 00 00 00 00                    ..........
Event Log: Doing Diffie-Hellman group exchange
Outgoing packet type 30 / 0x1e (SSH2_MSG_KEX_DH_GEX_REQUEST)
  00000000  00 00 10 00                                      ....
Outgoing raw data
  00000000  00 00 00 0c 06 1e 00 00 10 00 d5 f1 91 da a6 3d  ...............=
Incoming raw data
  00000000  00 00 02 14 08 1f 00 00 02 01 00 da 11 08 47 31  ..............G1
  00000010  4b 53 75 39 f2 a2 06 81 21 2a 0b 2e d2 64 bf 1f  KSu9....!*...d..
  00000020  25 95 b8 17 cc 51 6d 5a a4 21 15 85 94 8b 24 8f  %....QmZ.!....$.
  00000030  77 27 7b 11 ab 20 67 38 c7 1b 5f b2 fc c4 04 19  w'{.. g8.._.....
  00000040  27 b4 0b 98 52 82 79 5a 89 ef 66 bd b1 11 e1 d0  '...R.yZ..f.....
  00000050  7d 79 0a c4 87 da 58 41 b6 6f c4 07 ed 5d d8 61  }y....XA.o...].a
  00000060  27 03 13 64 22 c4 42 13 9c 12 04 0c e7 76 fe b6  '..d".B......v..
  00000070  c8 b5 9b 95 40 8f 31 fb 50 07 3a d5 4b 03 f9 71  ....@.1.P.:.K..q
  00000080  13 e6 1b e5 77 e7 6d 13 aa 97 1b a8 2c ee 62 1c  ....w.m.....,.b.
  00000090  31 c4 77 0a 7e 07 62 45 a1 66 89 a9 fe 3e 91 90  1.w.~.bE.f...>..
  000000a0  fb 61 7f b3 30 aa 70 aa c6 23 b4 47 d1 85 8c 24  .a..0.p..#.G...$
  000000b0  99 3d 48 6c 2b 9a 3c 63 ff cb 3f 23 0e 71 85 f1  .=Hl+.<c..?#.q..
  000000c0  63 c1 ee d4 34 c2 4e e1 1e ac 5b 23 69 fe af 79  c...4.N...[#i..y
  000000d0  05 23 bd 8b f7 e8 f9 c8 74 67 ed 6c 89 e5 59 69  .#......tg.l..Yi
  000000e0  74 dc a6 96 0e 53 72 59 ea 3a a5 87 bf 51 98 b2  t....SrY.:...Q..
  000000f0  6c e3 76 38 bc 57 01 28 51 90 3b b4 cc 0e 2a 28  l.v8.W.(Q.;...*(
  00000100  ec 74 1e ec b6 22 05 56 ec 5c 11 8a e0 14 2e 53  .t...".V.\.....S
  00000110  74 ae 2a 3d 1c ef 16 5c 09 c0 98 8a 37 87 7b ca  t.*=...\....7.{.
  00000120  6b bc ae 28 d5 2d a6 70 1b f0 77 30 71 95 c3 61  k..(.-.p..w0q..a
  00000130  8d 4c ac 58 dd f6 4b 6a 8c 2b f8 e2 fd cc 08 40  .L.X..Kj.+.....@
  00000140  97 3a 8e d1 f8 41 36 89 be 05 ea 54 ab 6c d3 04  .:...A6....T.l..
  00000150  64 f9 4d d9 26 d8 ce c6 b5 67 04 f5 34 c6 d8 32  d.M.&....g..4..2
  00000160  9a 27 ec ad 98 36 72 1b c0 c2 83 e6 3c da 54 fc  .'...6r.....<.T.
  00000170  ea 85 1c 02 03 e7 47 bb 02 b7 5c 92 03 69 28 ef  ......G...\..i(.
  00000180  c2 01 ff cb b7 47 a2 e0 93 cc ed 15 7c 3c 3f 74  .....G......|<?t
  00000190  25 8d 56 07 b6 b8 aa 33 0d ec cf 42 a7 3a 6f 81  %.V....3...B.:o.
  000001a0  d3 00 ba fc a9 21 ba ff 63 5d fc 90 82 49 38 f7  .....!..c]...I8.
  000001b0  45 4b 25 8c 19 67 ff 90 c1 d8 28 e0 28 f9 fa 86  EK%..g....(.(...
  000001c0  aa 7b 28 7a 87 ec 75 0e dc ec ee ec 22 3e ae a7  .{(z..u.....">..
  000001d0  85 11 cb 3c 01 30 04 39 50 47 87 37 fd f6 d5 6e  ...<.0.9PG.7...n
  000001e0  a2 b7 05 d5 e4 c5 77 01 e9 55 a9 c8 62 db ca f3  ......w..U..b...
  000001f0  6d 06 24 d2 f2 c2 06 16 aa 3e 04 78 a4 a7 22 bb  m.$......>.x..".
  00000200  a5 77 bc 02 57 8e e5 7e 85 01 a3 00 00 00 01 02  .w..W..~........
  00000210  00 00 00 00 00 00 00 00                          ........
Incoming packet type 31 / 0x1f (SSH2_MSG_KEX_DH_GEX_GROUP)
  00000000  00 00 02 01 00 da 11 08 47 31 4b 53 75 39 f2 a2  ........G1KSu9..
  00000010  06 81 21 2a 0b 2e d2 64 bf 1f 25 95 b8 17 cc 51  ..!*...d..%....Q
  00000020  6d 5a a4 21 15 85 94 8b 24 8f 77 27 7b 11 ab 20  mZ.!....$.w'{..
  00000030  67 38 c7 1b 5f b2 fc c4 04 19 27 b4 0b 98 52 82  g8.._.....'...R.
  00000040  79 5a 89 ef 66 bd b1 11 e1 d0 7d 79 0a c4 87 da  yZ..f.....}y....
  00000050  58 41 b6 6f c4 07 ed 5d d8 61 27 03 13 64 22 c4  XA.o...].a'..d".
  00000060  42 13 9c 12 04 0c e7 76 fe b6 c8 b5 9b 95 40 8f  B......v......@.
  00000070  31 fb 50 07 3a d5 4b 03 f9 71 13 e6 1b e5 77 e7  1.P.:.K..q....w.
  00000080  6d 13 aa 97 1b a8 2c ee 62 1c 31 c4 77 0a 7e 07  m.....,.b.1.w.~.
  00000090  62 45 a1 66 89 a9 fe 3e 91 90 fb 61 7f b3 30 aa  bE.f...>...a..0.
  000000a0  70 aa c6 23 b4 47 d1 85 8c 24 99 3d 48 6c 2b 9a  p..#.G...$.=Hl+.
  000000b0  3c 63 ff cb 3f 23 0e 71 85 f1 63 c1 ee d4 34 c2  <c..?#.q..c...4.
  000000c0  4e e1 1e ac 5b 23 69 fe af 79 05 23 bd 8b f7 e8  N...[#i..y.#....
  000000d0  f9 c8 74 67 ed 6c 89 e5 59 69 74 dc a6 96 0e 53  ..tg.l..Yit....S
  000000e0  72 59 ea 3a a5 87 bf 51 98 b2 6c e3 76 38 bc 57  rY.:...Q..l.v8.W
  000000f0  01 28 51 90 3b b4 cc 0e 2a 28 ec 74 1e ec b6 22  .(Q.;...*(.t..."
  00000100  05 56 ec 5c 11 8a e0 14 2e 53 74 ae 2a 3d 1c ef  .V.\.....St.*=..
  00000110  16 5c 09 c0 98 8a 37 87 7b ca 6b bc ae 28 d5 2d  .\....7.{.k..(.-
  00000120  a6 70 1b f0 77 30 71 95 c3 61 8d 4c ac 58 dd f6  .p..w0q..a.L.X..
  00000130  4b 6a 8c 2b f8 e2 fd cc 08 40 97 3a 8e d1 f8 41  Kj.+.....@.:...A
  00000140  36 89 be 05 ea 54 ab 6c d3 04 64 f9 4d d9 26 d8  6....T.l..d.M.&.
  00000150  ce c6 b5 67 04 f5 34 c6 d8 32 9a 27 ec ad 98 36  ...g..4..2.'...6
  00000160  72 1b c0 c2 83 e6 3c da 54 fc ea 85 1c 02 03 e7  r.....<.T.......
  00000170  47 bb 02 b7 5c 92 03 69 28 ef c2 01 ff cb b7 47  G...\..i(......G
  00000180  a2 e0 93 cc ed 15 7c 3c 3f 74 25 8d 56 07 b6 b8  ......|<?t%.V...
  00000190  aa 33 0d ec cf 42 a7 3a 6f 81 d3 00 ba fc a9 21  .3...B.:o......!
  000001a0  ba ff 63 5d fc 90 82 49 38 f7 45 4b 25 8c 19 67  ..c]...I8.EK%..g
  000001b0  ff 90 c1 d8 28 e0 28 f9 fa 86 aa 7b 28 7a 87 ec  ....(.(....{(z..
  000001c0  75 0e dc ec ee ec 22 3e ae a7 85 11 cb 3c 01 30  u.....">.....<.0
  000001d0  04 39 50 47 87 37 fd f6 d5 6e a2 b7 05 d5 e4 c5  .9PG.7...n......
  000001e0  77 01 e9 55 a9 c8 62 db ca f3 6d 06 24 d2 f2 c2  w..U..b...m.$...
  000001f0  06 16 aa 3e 04 78 a4 a7 22 bb a5 77 bc 02 57 8e  ...>.x.."..w..W.
  00000200  e5 7e 85 01 a3 00 00 00 01 02                    .~........
Event Log: Doing Diffie-Hellman key exchange with hash SHA-256
Outgoing packet type 32 / 0x20 (SSH2_MSG_KEX_DH_GEX_INIT)
  00000000  00 00 02 00 31 2e bd c4 de cc cd 0f b6 35 e2 2d  ....1........5.-
  00000010  09 5c 50 3a d8 8a 7d 45 c5 c6 f0 ae 21 98 45 f0  .\P:..}E....!.E.
  00000020  96 3b 4a 77 99 ea 91 5e 0b 6b d9 e7 98 bd 6a bf  .;Jw...^.k....j.
  00000030  56 66 64 69 e8 40 91 7b 14 3c 74 7c 42 07 32 ef  Vfdi.@.{.<t|B.2.
  00000040  04 54 e7 38 71 95 c0 0d b4 99 70 a6 cd 9d d8 2a  .T.8q.....p....*
  00000050  32 6b a9 83 d3 11 49 db df 3f c0 cc b4 ae 3d 04  2k....I..?....=.
  00000060  53 53 73 79 04 6a 98 61 94 4d 49 6d e0 af ef 8c  SSsy.j.a.MIm....
  00000070  be 1e 5a 95 17 3e 51 82 d2 d3 3b a5 b5 ad 05 4d  ..Z..>Q...;....M
  00000080  97 c0 8b 84 f2 5f f2 26 12 25 b9 31 89 39 e3 dd  ....._.&.%.1.9..
  00000090  8d 45 8b 7d d8 09 f5 a1 76 54 cf 91 01 95 03 c4  .E.}....vT......
  000000a0  5e 1a 22 75 eb 75 13 a8 cb 02 eb e8 0c e7 4a bd  ^."u.u........J.
  000000b0  a8 9d d0 9a 3d bc 8f ca bb 60 9c 8c b2 58 69 ce  ....=....`...Xi.
  000000c0  e6 1c 71 19 5a d1 57 03 6b 6d 31 66 c7 ed d7 cc  ..q.Z.W.km1f....
  000000d0  a4 26 4a ef 93 69 08 a1 44 1a c5 43 ec f2 e8 57  .&J..i..D..C...W
  000000e0  8b a2 7a 6d d4 f4 82 ee 6b 41 40 b1 e4 5b 64 1d  ..zm....kA@..[d.
  000000f0  f5 f3 f7 47 dc 49 cd 31 e2 99 0a 07 7c 49 bd a2  ...G.I.1....|I..
  00000100  4e a8 63 6c d1 a5 cd f9 b7 49 c1 65 0d a7 7b 40  N.cl.....I.e..{@
  00000110  4d 62 26 82 b0 9c 05 bb d0 57 cd 43 30 bb eb 8b  Mb&......W.C0...
  00000120  be 00 51 92 30 04 6e 53 89 87 3c 92 e3 88 aa 9f  ..Q.0.nS..<.....
  00000130  62 dc 2f 93 3b f9 11 b2 64 01 8f 5b bf be ee e3  b./.;...d..[....
  00000140  80 91 50 87 01 64 b8 f4 dc 6e 37 e0 10 14 14 53  ..P..d...n7....S
  00000150  7e 49 a5 80 af a9 9c 9c 07 05 50 44 54 a3 86 d8  ~I........PDT...
  00000160  2a f9 6e 7c 44 8f f0 fb aa 06 55 f5 02 f7 24 80  *.n|D.....U...$.
  00000170  cf 4e 4c 30 4f c4 07 3b c0 a6 83 90 54 5f 3c c6  .NL0O..;....T_<.
  00000180  70 55 e2 20 e6 ee 2c f5 6d 38 a2 af 93 b0 a9 0f  pU. ..,.m8......
  00000190  d2 fd 0c e6 4d c9 9d 46 d8 ec 9a 6f 0f e4 e4 7a  ....M..F...o...z
  000001a0  5e 4a dc 56 4a 26 de 89 eb 50 0f 35 7e 81 69 be  ^J.VJ&...P.5~.i.
  000001b0  b9 58 4b be dc c5 a4 c7 8e dc 15 1c 47 08 74 a5  .XK.........G.t.
  000001c0  ef 49 ba cd 14 ff 67 df c9 0c 98 ba 01 b5 52 b4  .I....g.......R.
  000001d0  46 ed c4 25 c2 9d 76 1a ff 75 d1 21 ce 13 f3 82  F..%..v..u.!....
  000001e0  d1 6b 3f c5 7d 01 be 0f 4e 24 d0 64 02 2d ee 1a  .k?.}...N$.d.-..
  000001f0  58 d1 81 21 f8 e3 e4 58 08 e2 b3 0a 04 c8 75 c0  X..!...X......u.
  00000200  46 db 84 86                                      F...
Outgoing raw data
  00000000  00 00 02 0c 06 20 00 00 02 00 31 2e bd c4 de cc  ..... ....1.....
  00000010  cd 0f b6 35 e2 2d 09 5c 50 3a d8 8a 7d 45 c5 c6  ...5.-.\P:..}E..
  00000020  f0 ae 21 98 45 f0 96 3b 4a 77 99 ea 91 5e 0b 6b  ..!.E..;Jw...^.k
  00000030  d9 e7 98 bd 6a bf 56 66 64 69 e8 40 91 7b 14 3c  ....j.Vfdi.@.{.<
  00000040  74 7c 42 07 32 ef 04 54 e7 38 71 95 c0 0d b4 99  t|B.2..T.8q.....
  00000050  70 a6 cd 9d d8 2a 32 6b a9 83 d3 11 49 db df 3f  p....*2k....I..?
  00000060  c0 cc b4 ae 3d 04 53 53 73 79 04 6a 98 61 94 4d  ....=.SSsy.j.a.M
  00000070  49 6d e0 af ef 8c be 1e 5a 95 17 3e 51 82 d2 d3  Im......Z..>Q...
  00000080  3b a5 b5 ad 05 4d 97 c0 8b 84 f2 5f f2 26 12 25  ;....M....._.&.%
  00000090  b9 31 89 39 e3 dd 8d 45 8b 7d d8 09 f5 a1 76 54  .1.9...E.}....vT
  000000a0  cf 91 01 95 03 c4 5e 1a 22 75 eb 75 13 a8 cb 02  ......^."u.u....
  000000b0  eb e8 0c e7 4a bd a8 9d d0 9a 3d bc 8f ca bb 60  ....J.....=....`
  000000c0  9c 8c b2 58 69 ce e6 1c 71 19 5a d1 57 03 6b 6d  ...Xi...q.Z.W.km
  000000d0  31 66 c7 ed d7 cc a4 26 4a ef 93 69 08 a1 44 1a  1f.....&J..i..D.
  000000e0  c5 43 ec f2 e8 57 8b a2 7a 6d d4 f4 82 ee 6b 41  .C...W..zm....kA
  000000f0  40 b1 e4 5b 64 1d f5 f3 f7 47 dc 49 cd 31 e2 99  @..[d....G.I.1..
  00000100  0a 07 7c 49 bd a2 4e a8 63 6c d1 a5 cd f9 b7 49  ..|I..N.cl.....I
  00000110  c1 65 0d a7 7b 40 4d 62 26 82 b0 9c 05 bb d0 57  .e..{@Mb&......W
  00000120  cd 43 30 bb eb 8b be 00 51 92 30 04 6e 53 89 87  .C0.....Q.0.nS..
  00000130  3c 92 e3 88 aa 9f 62 dc 2f 93 3b f9 11 b2 64 01  <.....b./.;...d.
  00000140  8f 5b bf be ee e3 80 91 50 87 01 64 b8 f4 dc 6e  .[......P..d...n
  00000150  37 e0 10 14 14 53 7e 49 a5 80 af a9 9c 9c 07 05  7....S~I........
  00000160  50 44 54 a3 86 d8 2a f9 6e 7c 44 8f f0 fb aa 06  PDT...*.n|D.....
  00000170  55 f5 02 f7 24 80 cf 4e 4c 30 4f c4 07 3b c0 a6  U...$..NL0O..;..
  00000180  83 90 54 5f 3c c6 70 55 e2 20 e6 ee 2c f5 6d 38  ..T_<.pU. ..,.m8
  00000190  a2 af 93 b0 a9 0f d2 fd 0c e6 4d c9 9d 46 d8 ec  ..........M..F..
  000001a0  9a 6f 0f e4 e4 7a 5e 4a dc 56 4a 26 de 89 eb 50  .o...z^J.VJ&...P
  000001b0  0f 35 7e 81 69 be b9 58 4b be dc c5 a4 c7 8e dc  .5~.i..XK.......
  000001c0  15 1c 47 08 74 a5 ef 49 ba cd 14 ff 67 df c9 0c  ..G.t..I....g...
  000001d0  98 ba 01 b5 52 b4 46 ed c4 25 c2 9d 76 1a ff 75  ....R.F..%..v..u
  000001e0  d1 21 ce 13 f3 82 d1 6b 3f c5 7d 01 be 0f 4e 24  .!.....k?.}...N$
  000001f0  d0 64 02 2d ee 1a 58 d1 81 21 f8 e3 e4 58 08 e2  .d.-..X..!...X..
  00000200  b3 0a 04 c8 75 c0 46 db 84 86 c0 50 66 e9 58 ab  ....u.F....Pf.X.
Incoming raw data
  00000000  00 00 03 fc 04 21 00 00 01 b2 00 00 00 07 73 73  .....!........ss
  00000010  68 2d 64 73 73 00 00 00 81 00 e5 d9 4b c5 23 de  h-dss.......K.#.
  00000020  21 49 b1 71 9a cc 98 e8 1b e7 08 22 f3 3c 06 37  !I.q.......".<.7
  00000030  70 a4 de 6f 40 c9 61 e5 81 84 9a 48 86 8a f6 a8  p..o@.a....H....
  00000040  0b a5 1a 04 6a 10 35 18 c7 d6 51 6a 06 61 c9 d2  ....j.5...Qj.a..
  00000050  cf ee 80 41 0c 0a 9a f1 31 ac 3e 62 5a 05 40 e2  ...A....1.>bZ.@.
  00000060  60 04 b8 7d d0 8d 8c 66 22 f8 50 5f e9 2c 90 00  `..}...f".P_.,..
  00000070  aa 2d 13 fb e8 91 e3 e5 22 81 dc 7e c1 5f 77 1c  .-......"..~._w.
  00000080  8a 79 dd 87 6c 4d 4f b7 d2 0a 2d 4a 9b b0 56 65  .y..lMO...-J..Ve
  00000090  6a 08 88 c1 03 18 06 0b df e1 00 00 00 15 00 bc  j...............
  000000a0  7e 01 66 e0 bf 63 ca 7d 08 c7 9b 8b dd e8 68 bf  ~.f..c.}......h.
  000000b0  7b b2 b9 00 00 00 80 2f 0e 4f 3a 34 53 40 46 23  {....../.O:4S@F#
  000000c0  22 d7 bc 48 95 d4 d4 0d ac 85 c5 06 21 23 0c 05  "..H........!#..
  000000d0  80 1e dc c1 ae 68 f4 b8 98 58 25 a9 fc f5 f9 c2  .....h...X%.....
  000000e0  00 b7 03 6a 88 2f 0c e0 af 49 13 e6 e5 ad 38 c7  ...j./...I....8.
  000000f0  4c 14 be ae 96 a4 b6 6a 42 04 60 9a 9a 29 09 c5  L......jB.`..)..
  00000100  9e 7a 7a 3d 74 4c 4a a4 3c 01 39 c1 5a fe 78 38  .zz=tLJ.<.9.Z.x8
  00000110  be 75 0d ac 31 0f 8a 75 cc 2f 7c 6f a8 bc 25 87  .u..1..u./|o..%.
  00000120  98 d1 3f 39 94 be 86 5f 14 44 48 08 f5 6f e3 2e  ..?9..._.DH..o..
  00000130  00 f1 49 68 44 84 56 00 00 00 81 00 bc 03 70 56  ..IhD.V.......pV
  00000140  77 01 1a ab b2 4f 44 77 73 85 62 20 16 d1 22 41  w....ODws.b .."A
  00000150  3b 18 53 29 15 05 14 f5 1f a5 ab 38 b0 25 ef 7b  ;.S).......8.%.{
  00000160  b8 54 79 9f 09 34 01 f4 5c fb 82 dd 49 fd ba 80  .Ty..4..\...I...
  00000170  00 32 4d 68 e0 2b a1 ad 76 a8 c2 5a 71 37 fe 5d  .2Mh.+..v..Zq7.]
  00000180  3f 17 49 39 a9 98 0d 84 4a 35 09 02 ee 9b 7b 2e  ?.I9....J5....{.
  00000190  c4 66 3e 2e 8b ba da 66 b5 fe fc 4a c5 35 5c c3  .f>....f...J.5\.
  000001a0  27 92 34 85 cb bd 08 81 6e 09 83 c4 c1 e8 d1 15  '.4.....n.......
  000001b0  57 f0 43 7d 8c a6 ca 4a 7d 52 27 f7 00 00 02 01  W.C}...J}R'.....
  000001c0  00 9a 91 f5 fc d2 a2 85 b2 3f b9 c0 e3 c7 93 43  .........?.....C
  000001d0  4f 42 57 48 4a e0 05 1f f8 d3 c7 77 64 b2 53 a9  OBWHJ......wd.S.
  000001e0  fa f0 76 9c 3f 8e 8a a6 a6 98 f9 93 a4 7c df c9  ..v.?........|..
  000001f0  2d 52 8d e5 d3 14 9c 19 86 96 9a e1 4a ff f6 46  -R..........J..F
  00000200  80 5a 08 ca cb b7 29 68 94 8c b2 1e 41 37 0a a7  .Z....)h....A7..
  00000210  4a b1 66 a5 36 69 00 46 eb 8b 3a d2 df 68 51 a0  J.f.6i.F..:..hQ.
  00000220  47 53 f3 fe 81 82 9c 06 13 6a 65 25 15 9f 69 6f  GS.......je%..io
  00000230  3d 48 c5 74 0e 8a 59 70 e8 9f 1f e7 a7 b2 0e ff  =H.t..Yp........
  00000240  7f e9 a8 ca fc c1 67 89 cb 37 02 ab 01 ee a8 61  ......g..7.....a
  00000250  f4 57 63 94 6e 84 3b 97 de 35 77 9e 16 5f 1f 55  .Wc.n.;..5w.._.U
  00000260  99 e6 d8 63 7d a8 ad a6 6c 74 b0 a2 ab 98 5a d9  ...c}...lt....Z.
  00000270  c8 b9 37 db 3e 25 36 b0 ea 82 50 d4 70 04 16 51  ..7.>%6...P.p..Q
  00000280  79 c7 9f 34 2d 84 90 f1 b5 e4 cb 55 0d 3f a2 e9  y..4-......U.?..
  00000290  46 7f 47 f6 1b 56 30 3b ae ae 48 cc 0d b7 62 74  F.G..V0;..H...bt
  000002a0  7d d0 c9 37 e5 54 1e cf f1 a5 d1 1e b7 87 3f 92  }..7.T........?.
  000002b0  85 c9 ac 1a 66 50 88 c3 b6 6c 9b f7 73 ca ef b2  ....fP...l..s...
  000002c0  64 ff b1 e6 f4 cb 00 a6 30 f0 ee 00 e4 9e 5b 9b  d.......0.....[.
  000002d0  53 b0 2e ab d0 57 47 80 a9 c2 da 67 2a a2 82 05  S....WG....g*...
  000002e0  51 35 d8 23 26 e3 71 bb 2b 11 ef c5 b0 78 7a 89  Q5.#&.q.+....xz.
  000002f0  95 be 97 37 0a 13 31 c6 a2 a1 ec 04 3b cc 17 f8  ...7..1.....;...
  00000300  b6 59 6e 32 8d a6 b2 d2 8e dc 9e 5f 0b b4 d6 25  .Yn2......._...%
  00000310  9a 82 76 1f 26 34 be 97 ba ef fe 25 52 f0 cc 99  ..v.&4.....%R...
  00000320  31 f9 7d b6 5e b1 d8 53 43 49 5e ca 65 6a 2f dd  1.}.^..SCI^.ej/.
  00000330  97 93 18 1d 85 d5 45 82 b5 16 ef a4 d5 f8 89 8e  ......E.........
  00000340  73 64 cf fe 92 7d ac ac 4b 91 23 d8 97 68 7e 68  sd...}..K.#..h~h
  00000350  d2 8d 3b ad a7 5c d0 d2 9f c6 01 f1 9f 4e 07 5f  ..;..\.......N._
  00000360  86 66 9e 46 c7 2a de 5a a0 83 93 74 cf 8f e4 f3  .f.F.*.Z...t....
  00000370  65 f8 c4 27 72 8d c6 c0 77 21 7b 4f 94 e6 e1 67  e..'r...w!{O...g
  00000380  40 b4 6b 47 ce 78 93 09 54 db 94 2e d0 fc 49 8f  @.kG.x..T.....I.
  00000390  94 74 06 5e 63 77 65 4c d0 c9 80 0f aa 8a f9 c1  .t.^cweL........
  000003a0  8c 44 3c 55 76 7c 67 ad aa c1 88 1f 7e 7d 2f f9  .D<Uv|g.....~}/.
  000003b0  5a 3c 46 5a ff d9 37 0b a9 8c 9b 69 92 39 e6 7a  Z<FZ..7....i.9.z
  000003c0  47 00 00 00 37 00 00 00 07 73 73 68 2d 64 73 73  G...7....ssh-dss
  000003d0  00 00 00 28 5d c4 c5 3b 8f 65 d2 10 34 f2 34 2c  ...(]..;.e..4.4,
  000003e0  89 f6 7e 75 67 ac f6 06 0b 3d a8 ce 1d a2 c8 fc  ..~ug....=......
  000003f0  75 09 dd b1 41 a5 81 bc 57 91 4a a8 00 00 00 00  u...A...W.J.....
  00000400  00 00 00 0c 0a 15 00 00 00 00 00 00 00 00 00 00  ................
Incoming packet type 33 / 0x21 (SSH2_MSG_KEX_DH_GEX_REPLY)
  00000000  00 00 01 b2 00 00 00 07 73 73 68 2d 64 73 73 00  ........ssh-dss.
  00000010  00 00 81 00 e5 d9 4b c5 23 de 21 49 b1 71 9a cc  ......K.#.!I.q..
  00000020  98 e8 1b e7 08 22 f3 3c 06 37 70 a4 de 6f 40 c9  .....".<.7p..o@.
  00000030  61 e5 81 84 9a 48 86 8a f6 a8 0b a5 1a 04 6a 10  a....H........j.
  00000040  35 18 c7 d6 51 6a 06 61 c9 d2 cf ee 80 41 0c 0a  5...Qj.a.....A..
  00000050  9a f1 31 ac 3e 62 5a 05 40 e2 60 04 b8 7d d0 8d  ..1.>bZ.@.`..}..
  00000060  8c 66 22 f8 50 5f e9 2c 90 00 aa 2d 13 fb e8 91  .f".P_.,...-....
  00000070  e3 e5 22 81 dc 7e c1 5f 77 1c 8a 79 dd 87 6c 4d  .."..~._w..y..lM
  00000080  4f b7 d2 0a 2d 4a 9b b0 56 65 6a 08 88 c1 03 18  O...-J..Vej.....
  00000090  06 0b df e1 00 00 00 15 00 bc 7e 01 66 e0 bf 63  ..........~.f..c
  000000a0  ca 7d 08 c7 9b 8b dd e8 68 bf 7b b2 b9 00 00 00  .}......h.{.....
  000000b0  80 2f 0e 4f 3a 34 53 40 46 23 22 d7 bc 48 95 d4  ./.O:4S@F#"..H..
  000000c0  d4 0d ac 85 c5 06 21 23 0c 05 80 1e dc c1 ae 68  ......!#.......h
  000000d0  f4 b8 98 58 25 a9 fc f5 f9 c2 00 b7 03 6a 88 2f  ...X%........j./
  000000e0  0c e0 af 49 13 e6 e5 ad 38 c7 4c 14 be ae 96 a4  ...I....8.L.....
  000000f0  b6 6a 42 04 60 9a 9a 29 09 c5 9e 7a 7a 3d 74 4c  .jB.`..)...zz=tL
  00000100  4a a4 3c 01 39 c1 5a fe 78 38 be 75 0d ac 31 0f  J.<.9.Z.x8.u..1.
  00000110  8a 75 cc 2f 7c 6f a8 bc 25 87 98 d1 3f 39 94 be  .u./|o..%...?9..
  00000120  86 5f 14 44 48 08 f5 6f e3 2e 00 f1 49 68 44 84  ._.DH..o....IhD.
  00000130  56 00 00 00 81 00 bc 03 70 56 77 01 1a ab b2 4f  V.......pVw....O
  00000140  44 77 73 85 62 20 16 d1 22 41 3b 18 53 29 15 05  Dws.b .."A;.S)..
  00000150  14 f5 1f a5 ab 38 b0 25 ef 7b b8 54 79 9f 09 34  .....8.%.{.Ty..4
  00000160  01 f4 5c fb 82 dd 49 fd ba 80 00 32 4d 68 e0 2b  ..\...I....2Mh.+
  00000170  a1 ad 76 a8 c2 5a 71 37 fe 5d 3f 17 49 39 a9 98  ..v..Zq7.]?.I9..
  00000180  0d 84 4a 35 09 02 ee 9b 7b 2e c4 66 3e 2e 8b ba  ..J5....{..f>...
  00000190  da 66 b5 fe fc 4a c5 35 5c c3 27 92 34 85 cb bd  .f...J.5\.'.4...
  000001a0  08 81 6e 09 83 c4 c1 e8 d1 15 57 f0 43 7d 8c a6  ..n.......W.C}..
  000001b0  ca 4a 7d 52 27 f7 00 00 02 01 00 9a 91 f5 fc d2  .J}R'...........
  000001c0  a2 85 b2 3f b9 c0 e3 c7 93 43 4f 42 57 48 4a e0  ...?.....COBWHJ.
  000001d0  05 1f f8 d3 c7 77 64 b2 53 a9 fa f0 76 9c 3f 8e  .....wd.S...v.?.
  000001e0  8a a6 a6 98 f9 93 a4 7c df c9 2d 52 8d e5 d3 14  .......|..-R....
  000001f0  9c 19 86 96 9a e1 4a ff f6 46 80 5a 08 ca cb b7  ......J..F.Z....
  00000200  29 68 94 8c b2 1e 41 37 0a a7 4a b1 66 a5 36 69  )h....A7..J.f.6i
  00000210  00 46 eb 8b 3a d2 df 68 51 a0 47 53 f3 fe 81 82  .F..:..hQ.GS....
  00000220  9c 06 13 6a 65 25 15 9f 69 6f 3d 48 c5 74 0e 8a  ...je%..io=H.t..
  00000230  59 70 e8 9f 1f e7 a7 b2 0e ff 7f e9 a8 ca fc c1  Yp..............
  00000240  67 89 cb 37 02 ab 01 ee a8 61 f4 57 63 94 6e 84  g..7.....a.Wc.n.
  00000250  3b 97 de 35 77 9e 16 5f 1f 55 99 e6 d8 63 7d a8  ;..5w.._.U...c}.
  00000260  ad a6 6c 74 b0 a2 ab 98 5a d9 c8 b9 37 db 3e 25  ..lt....Z...7.>%
  00000270  36 b0 ea 82 50 d4 70 04 16 51 79 c7 9f 34 2d 84  6...P.p..Qy..4-.
  00000280  90 f1 b5 e4 cb 55 0d 3f a2 e9 46 7f 47 f6 1b 56  .....U.?..F.G..V
  00000290  30 3b ae ae 48 cc 0d b7 62 74 7d d0 c9 37 e5 54  0;..H...bt}..7.T
  000002a0  1e cf f1 a5 d1 1e b7 87 3f 92 85 c9 ac 1a 66 50  ........?.....fP
  000002b0  88 c3 b6 6c 9b f7 73 ca ef b2 64 ff b1 e6 f4 cb  ...l..s...d.....
  000002c0  00 a6 30 f0 ee 00 e4 9e 5b 9b 53 b0 2e ab d0 57  ..0.....[.S....W
  000002d0  47 80 a9 c2 da 67 2a a2 82 05 51 35 d8 23 26 e3  G....g*...Q5.#&.
  000002e0  71 bb 2b 11 ef c5 b0 78 7a 89 95 be 97 37 0a 13  q.+....xz....7..
  000002f0  31 c6 a2 a1 ec 04 3b cc 17 f8 b6 59 6e 32 8d a6  1.....;....Yn2..
  00000300  b2 d2 8e dc 9e 5f 0b b4 d6 25 9a 82 76 1f 26 34  ....._...%..v.&4
  00000310  be 97 ba ef fe 25 52 f0 cc 99 31 f9 7d b6 5e b1  .....%R...1.}.^.
  00000320  d8 53 43 49 5e ca 65 6a 2f dd 97 93 18 1d 85 d5  .SCI^.ej/.......
  00000330  45 82 b5 16 ef a4 d5 f8 89 8e 73 64 cf fe 92 7d  E.........sd...}
  00000340  ac ac 4b 91 23 d8 97 68 7e 68 d2 8d 3b ad a7 5c  ..K.#..h~h..;..\
  00000350  d0 d2 9f c6 01 f1 9f 4e 07 5f 86 66 9e 46 c7 2a  .......N._.f.F.*
  00000360  de 5a a0 83 93 74 cf 8f e4 f3 65 f8 c4 27 72 8d  .Z...t....e..'r.
  00000370  c6 c0 77 21 7b 4f 94 e6 e1 67 40 b4 6b 47 ce 78  ..w!{O...g@.kG.x
  00000380  93 09 54 db 94 2e d0 fc 49 8f 94 74 06 5e 63 77  ..T.....I..t.^cw
  00000390  65 4c d0 c9 80 0f aa 8a f9 c1 8c 44 3c 55 76 7c  eL.........D<Uv|
  000003a0  67 ad aa c1 88 1f 7e 7d 2f f9 5a 3c 46 5a ff d9  g.....~}/.Z<FZ..
  000003b0  37 0b a9 8c 9b 69 92 39 e6 7a 47 00 00 00 37 00  7....i.9.zG...7.
  000003c0  00 00 07 73 73 68 2d 64 73 73 00 00 00 28 5d c4  ...ssh-dss...(].
  000003d0  c5 3b 8f 65 d2 10 34 f2 34 2c 89 f6 7e 75 67 ac  .;.e..4.4,..~ug.
  000003e0  f6 06 0b 3d a8 ce 1d a2 c8 fc 75 09 dd b1 41 a5  ...=......u...A.
  000003f0  81 bc 57 91 4a a8                                ..W.J.
Event Log: Host key fingerprint is:
Event Log: ssh-dss 1024 86:3a:07:46:64:9b:a8:48:bf:dc:85:e0:af:65:85:e8
Outgoing packet type 21 / 0x15 (SSH2_MSG_NEWKEYS)
Outgoing raw data
  00000000  00 00 00 0c 0a 15 e7 c2 e9 4d 89 8b 8b 18 dc cc  .........M......
Event Log: Initialised AES-256 CBC client->server encryption
Event Log: Initialised HMAC-SHA1 client->server MAC algorithm
Outgoing raw data
Incoming packet type 21 / 0x15 (SSH2_MSG_NEWKEYS)
Event Log: Initialised AES-256 CBC server->client encryption
Event Log: Initialised HMAC-SHA1 server->client MAC algorithm
Outgoing packet type 2 / 0x02 (SSH2_MSG_IGNORE)
  00000000  00 00 00 00                                      ....
Outgoing packet type 5 / 0x05 (SSH2_MSG_SERVICE_REQUEST)
  00000000  00 00 00 0c 73 73 68 2d 75 73 65 72 61 75 74 68  ....ssh-userauth
Outgoing raw data
  00000000  71 1e 57 0d 0c 27 20 13 9f d7 04 04 71 5a 0b cb  q.W..' .....qZ..
  00000010  ea 45 9e f5 20 34 06 fd 00 0e 0f 8e a6 e4 4b 59  .E.. 4........KY
  00000020  61 97 0a 20 07 24 97 ec 53 16 b4 04 0f e6 52 47  a.. .$..S.....RG
  00000030  e9 d0 ce 95 e3 a5 ce 74 d5 6b 82 4f ac 76 cf 9c  .......t.k.O.v..
  00000040  dd 76 f0 a0 d2 8d ad 52 44 21 e6 d6 11 a0 e6 c3  .v.....RD!......
  00000050  1d fa 23 de d9 54 b3 07                          ..#..T..
Incoming raw data
  00000000  47 77 44 0d 0d 77 4a bf 1c 6d d0 b4 c5 17 51 5f  GwD..wJ..m....Q_
  00000010  a6 7a 7e cb aa f4 a2 95 42 5c 70 a7 c4 5d 84 8b  .z~.....B\p..]..
  00000020  ff 7f 1e 86 27 7a 3b cd 65 3b 7b 1a 0e f7 ae 06  ....'z;.e;{.....
  00000030  60 a0 c2 10                                      `...
Incoming packet type 6 / 0x06 (SSH2_MSG_SERVICE_ACCEPT)
  00000000  00 00 00 0c 73 73 68 2d 75 73 65 72 61 75 74 68  ....ssh-userauth
Outgoing packet type 2 / 0x02 (SSH2_MSG_IGNORE)
  00000000  00 00 00 00                                      ....
Outgoing packet type 50 / 0x32 (SSH2_MSG_USERAUTH_REQUEST)
  00000000  00 00 00 06 73 74 61 74 75 73 00 00 00 0e 73 73  ....status....ss
  00000010  68 2d 63 6f 6e 6e 65 63 74 69 6f 6e 00 00 00 04  h-connection....
  00000020  6e 6f 6e 65                                      none
Outgoing raw data
  00000000  33 41 56 2b 1e 85 d4 eb 7c c7 db dc 4f 7a 11 8f  3AV+....|...Oz..
  00000010  ef 2e c8 de 56 c0 b6 05 81 49 15 eb 2c 2b a1 28  ....V....I..,+.(
  00000020  4a e5 f0 26 7e 75 c1 ef a7 18 4a 05 80 66 41 88  J..&~u....J..fA.
  00000030  43 05 6d 21 b2 d9 0d fb 4c 89 a4 2c b7 97 c2 30  C.m!....L..,...0
  00000040  90 92 45 ae b2 7b c8 02 b1 82 61 6c 50 aa 95 45  ..E..{....alP..E
  00000050  7b 59 63 25 32 a5 fa b8 02 77 cb 57 77 b3 77 ea  {Yc%2....w.Ww.w.
  00000060  1f d4 97 e5 d3 9a 91 ba                          ........
Incoming raw data
  00000000  69 63 07 b7 de 3c 39 29 4b b5 94 c1 6a fd 4e 34  ic...<9)K...j.N4
  00000010  2d 06 3e 3c 76 05 d0 a7 ac bb 38 b6 70 bb fd 76  -.><v.....8.p..v
  00000020  5d 3e dc 5b d4 81 5f e3 0b 8a da 30 4f 8c fa 82  ]>.[.._....0O...
  00000030  36 85 e3 d6 87 33 c5 37 d5 62 49 fe 08 93 42 52  6....3.7.bI...BR
  00000040  29 52 e2 83 5c 9e 32 7a f8 c6 a3 93 77 27 6b e2  )R..\.2z....w'k.
  00000050  68 52 ad da                                      hR..
Incoming packet type 51 / 0x33 (SSH2_MSG_USERAUTH_FAILURE)
  00000000  00 00 00 27 70 75 62 6c 69 63 6b 65 79 2c 70 61  ...'publickey,pa
  00000010  73 73 77 6f 72 64 2c 6b 65 79 62 6f 61 72 64 2d  ssword,keyboard-
  00000020  69 6e 74 65 72 61 63 74 69 76 65 00              interactive.
Outgoing packet type 2 / 0x02 (SSH2_MSG_IGNORE)
  00000000  00 00 00 00                                      ....
Outgoing packet type 50 / 0x32 (SSH2_MSG_USERAUTH_REQUEST)
  00000000  00 00 00 06 73 74 61 74 75 73 00 00 00 0e 73 73  ....status....ss
  00000010  68 2d 63 6f 6e 6e 65 63 74 69 6f 6e 00 00 00 14  h-connection....
  00000020  6b 65 79 62 6f 61 72 64 2d 69 6e 74 65 72 61 63  keyboard-interac
  00000030  74 69 76 65 00 00 00 00 00 00 00 00              tive........
Outgoing raw data
  00000000  4c 3d c7 65 94 ec 64 f7 52 ee 40 d8 52 d7 9d a7  L=.e..d.R.@.R...
  00000010  c4 cb f5 fb 7e 7d 4f c3 97 bf 31 9d a2 4c 02 d8  ....~}O...1..L..
  00000020  ea d2 d8 4e 9c 87 c7 3c 56 bd f3 02 cd 5f 4f bd  ...N...<V...._O.
  00000030  26 85 ee 9b 72 96 3d d9 85 ac 47 43 98 44 d2 cf  &...r.=...GC.D..
  00000040  21 d3 b9 80 cc e9 7a fc e1 08 1d 5f 58 87 46 ed  !.....z...._X.F.
  00000050  62 ca 4a 02 80 6b a9 f4 0c 7b ab 11 8b cc fd eb  b.J..k...{......
  00000060  8d a4 a9 5b e8 d7 c9 eb 75 d1 55 f9 cd e0 35 c9  ...[....u.U...5.
  00000070  01 ff c7 2f d9 7f de 0f c1 6f d8 a5 0c 9c d0 06  .../.....o......
  00000080  57 2f 44 a9 51 be fb 8d                          W/D.Q...
Incoming raw data
  00000000  84 bc cf 43 84 17 e6 e1 67 04 5f 09 38 68 4b 79  ...C....g._.8hKy
  00000010  09 c3 c8 78 5e 1f ef 16 1a 07 7d 51 41 e9 e5 a8  ...x^.....}QA...
  00000020  fa e0 39 72 84 44 f3 b1 8e 9e 34 6d df 7d 5d b2  ..9r.D....4m.}].
  00000030  55 5d 4a 8d 9e 20 dd 3d 16 62 11 f4 55 9d 8f 96  U]J.. .=.b..U...
  00000040  00 8c f2 80                                      ....
Incoming packet type 60 / 0x3c (SSH2_MSG_USERAUTH_INFO_REQUEST)
  00000000  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01  ................
  00000010  00 00 00 0a 50 61 73 73 77 6f 72 64 3a 20 00     ....Password: .
Outgoing packet type 2 / 0x02 (SSH2_MSG_IGNORE)
  00000000  00 00 00 00                                      ....
Outgoing packet type 61 / 0x3d (SSH2_MSG_USERAUTH_INFO_RESPONSE)
  00000000  00 00 00 01 XX XX XX XX XX XX XX XX XX XX XX XX  ....XXXXXXXXXXXX
Outgoing packet type 2 / 0x02 (SSH2_MSG_IGNORE)
  00000000  00 00 00 b0 82 91 37 71 bb 8a 4a 75 e7 0a a4 7e  ......7q..Ju...~
  00000010  5a 72 74 ae ff 5f e8 cf 95 f5 65 d9 72 fd da 8e  Zrt.._....e.r...
  00000020  91 64 cf 24 bf f4 0a 15 67 4a 11 03 6f 78 0f 9f  .d.$....gJ..ox..
  00000030  09 c9 2b ab 1c 48 35 af ad 2b 92 61 58 ee 47 9c  ..+..H5..+.aX.G.
  00000040  f8 59 ae 2a f3 66 ef b5 2f ed c5 83 2d 76 17 28  .Y.*.f../...-v.(
  00000050  23 b6 06 81 c6 e0 f1 3f 1a b2 26 7f 67 fc b7 22  #......?..&.g.."
  00000060  91 cd 52 45 e5 58 3f ff a8 8a 67 08 1c 79 0b fe  ..RE.X?...g..y..
  00000070  55 37 af ec fd a4 16 53 88 bd 10 9b 27 24 75 16  U7.....S....'$u.
  00000080  31 14 cf 8b 19 d0 aa b5 5e 23 85 fd b7 c3 93 56  1.......^#.....V
  00000090  d2 2c 15 98 08 ec a9 34 4a ee 4e bf 53 18 ae 29  .,.....4J.N.S..)
  000000a0  2b 65 e5 c3 41 b1 52 f6 5c e7 83 fb 64 43 2a 9e  +e..A.R.\...dC*.
  000000b0  af d1 b0 1c                                      ....
Outgoing raw data
  00000000  9f 40 e1 6c 26 0b ec 09 e3 b7 f2 06 79 87 78 13  .@.l&.......y.x.
  00000010  82 93 99 5b 52 25 be 8f 18 cc c6 44 56 74 34 81  ...[R%.....DVt4.
  00000020  05 9e 25 ca cf b3 de 94 44 91 26 af cd 83 76 87  ..%.....D.&...v.
  00000030  2a 36 97 4c 99 54 1d ec 2d e9 91 01 ed e0 46 2f  *6.L.T..-.....F/
  00000040  66 46 38 3e f3 40 b1 e1 f5 93 17 14 46 05 96 29  fF8>.@......F..)
  00000050  fb 15 55 47 c1 f2 16 78 e0 98 fb f0 51 b0 f0 32  ..UG...x....Q..2
  00000060  bd 7d 93 ae 6f 5f 25 f3 c4 de 4e 55 70 d3 fe d4  .}..o_%...NUp...
  00000070  89 36 20 ac f7 83 60 98 bf 9f 12 14 43 6c 82 be  .6 ...`.....Cl..
  00000080  56 ab 56 13 62 7f 25 7c d7 1d e1 d5 32 ca 48 bc  V.V.b.%|....2.H.
  00000090  d6 19 f7 0f e0 4a 91 05 f2 51 58 f3 ed 75 53 67  .....J...QX..uSg
  000000a0  74 76 f8 8f 22 38 2c 15 19 d9 02 fc 2b c5 db 12  tv.."8,.....+...
  000000b0  71 78 0c e6 ed 11 ec de 8e c4 25 39 45 2f ed f0  qx........%9E/..
  000000c0  b3 61 b0 29 0f 95 7a e8 0e af 2f c6 2e 01 84 4e  .a.)..z.../....N
  000000d0  23 75 6b a6 f9 92 20 e3 9c 76 a5 21 fe 1b f4 fd  #uk... ..v.!....
  000000e0  47 b1 e1 24 c2 68 98 52 88 72 a6 f3 c1 ee 59 7c  G..$.h.R.r....Y|
  000000f0  a1 c5 a6 39 18 86 c4 8d 38 f8 bb 4d cc 0d 36 21  ...9....8..M..6!
  00000100  57 a3 ee 42 33 82 23 aa 25 8c 1a 19 f4 cb 8e 96  W..B3.#.%.......
  00000110  20 fa 19 18 c4 8b ae 95 68 b7 6a b1 ea 9c b1 dd   .......h.j.....
  00000120  92 5f e2 b9 9a 75 f9 02 09 9c 1b ee              ._...u......
Incoming raw data
  00000000  03 47 cd 3e d6 b5 67 41 d0 7e bd 28 39 14 8b 76  .G.>..gA.~.(9..v
  00000010  b6 33 0a 87 33 a9 8d e3 37 de fa 06 51 75 eb 18  .3..3...7...Qu..
  00000020  d3 29 51 3c f8 0b 65 fa 6f c0 84 4b 1c 9a 71 69  .)Q<..e.o..K..qi
  00000030  46 51 2b 8d                                      FQ+.
Incoming packet type 60 / 0x3c (SSH2_MSG_USERAUTH_INFO_REQUEST)
  00000000  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
Outgoing packet type 2 / 0x02 (SSH2_MSG_IGNORE)
  00000000  00 00 00 00                                      ....
Outgoing packet type 61 / 0x3d (SSH2_MSG_USERAUTH_INFO_RESPONSE)
  00000000  00 00 00 00                                      ....
Outgoing packet type 2 / 0x02 (SSH2_MSG_IGNORE)
  00000000  00 00 00 c0 69 53 ed 06 ab 14 09 ca b8 d5 10 fe  ....iS..........
  00000010  e9 dc ee 55 6e 03 cd c2 f8 f5 bf b0 fa 3e 3a 82  ...Un........>:.
  00000020  58 f1 4e 9f f3 f7 fd ce 26 8c b9 04 d6 4f 5f 4f  X.N.....&....O_O
  00000030  98 86 57 b4 83 21 66 8d d1 ea e8 12 14 0a ae aa  ..W..!f.........
  00000040  95 1f 66 a2 ca 7f 45 a6 ee 37 0c 14 b5 b1 6d 70  ..f...E..7....mp
  00000050  52 4a f7 9a 2c e7 cc a3 12 07 a7 9c ea 02 8e f5  RJ..,...........
  00000060  2e a6 c7 1b 79 d8 ee 2f 29 76 ed b4 22 66 c9 c6  ....y../)v.."f..
  00000070  7b 13 b2 76 74 ee f9 7b 03 79 10 8c ce 34 9c b3  {..vt..{.y...4..
  00000080  40 be 18 42 bf d0 e7 57 01 4b 31 dd d3 92 b0 42  @..B...W.K1....B
  00000090  a4 c7 95 7d 71 14 94 cc b3 f3 ec 42 a4 82 f6 16  ...}q......B....
  000000a0  05 6a 64 19 b7 97 81 f2 fc 97 4b 66 e0 d8 b4 4b  .jd.......Kf...K
  000000b0  f1 4e 8c bf 92 b4 d5 a1 37 a3 92 4f ad 46 74 e5  .N......7..O.Ft.
  000000c0  11 fa 3a 36                                      ..:6
Outgoing raw data
  00000000  f6 f8 7b 78 16 27 51 2d 68 c3 38 43 7e 29 a9 c8  ..{x.'Q-h.8C~)..
  00000010  06 88 e8 64 f4 89 1f 61 00 0f c9 31 7a ec c7 10  ...d...a...1z...
  00000020  6c 71 e3 ba b7 33 0c 7b 43 6d f4 b7 c9 c5 55 cf  lq...3.{Cm....U.
  00000030  38 dd fb 10 da 82 82 c9 c4 af 14 2d 38 8a 9b 7f  8..........-8...
  00000040  ab 7e d7 18 0f 8f d9 2f 82 5d 6c 23 9d 70 58 f4  .~...../.]l#.pX.
  00000050  77 22 84 37 88 ca dd 0f 43 d5 cf e0 04 fc 21 9f  w".7....C.....!.
  00000060  4f d5 69 8f 0f 3b e0 cf d9 0e fb 81 a2 3a 97 b6  O.i..;.......:..
  00000070  62 aa 19 2d 52 ef f3 d1 c0 e4 3a 17 c9 6a 71 b1  b..-R.....:..jq.
  00000080  92 94 39 02 c7 c4 97 7d 73 27 98 9b cd b8 8e 6b  ..9....}s'.....k
  00000090  d2 9d a4 c9 b5 df 1d c5 ae 47 3a 5d 39 e6 f8 d4  .........G:]9...
  000000a0  72 f5 6d a1 f1 ab 15 35 87 5c 55 67 30 1a 14 f6  r.m....5.\Ug0...
  000000b0  79 20 17 5a 2b cd 4c 54 92 50 1a 25 17 7b 91 ea  y .Z+.LT.P.%.{..
  000000c0  81 0f 67 e2 f2 56 89 d2 17 35 7e 68 98 c7 d3 8f  ..g..V...5~h....
  000000d0  4f 1a c2 29 4d 36 94 5a 5c 72 14 e3 34 3c 1f 99  O..)M6.Z\r..4<..
  000000e0  5d 91 8e 63 9e aa 57 03 13 16 01 91 61 06 18 23  ]..c..W.....a..#
  000000f0  08 9f 86 12 c6 2c f0 c9 19 5e 88 36 0d ec fc cd  .....,...^.6....
  00000100  21 d0 8a 4f 23 ec a7 57 29 1a 2d c5 a6 94 10 e2  !..O#..W).-.....
  00000110  62 76 65 9e 1d 7b df 59 0f 95 49 51 84 bb c2 ef  bve..{.Y..IQ....
  00000120  d1 11 d8 a7 69 c9 aa ba 18 73 63 32              ....i....sc2
Incoming raw data
  00000000  68 73 81 22 f1 bf b9 a0 7b b2 56 72 19 86 2b fe  hs."....{.Vr..+.
  00000010  b3 ab 78 36 f5 ed a6 58 22 44 0f 3d ad 69 7c 06  ..x6...X"D.=.i|.
  00000020  30 c6 89 7b                                      0..{
Incoming packet type 52 / 0x34 (SSH2_MSG_USERAUTH_SUCCESS)
Event Log: Access granted
Outgoing packet type 2 / 0x02 (SSH2_MSG_IGNORE)
  00000000  00 00 00 00                                      ....
Outgoing packet type 90 / 0x5a (SSH2_MSG_CHANNEL_OPEN)
  00000000  00 00 00 07 73 65 73 73 69 6f 6e 00 00 01 00 00  ....session.....
  00000010  00 40 00 00 00 40 00                             .@...@.
Outgoing raw data
  00000000  60 a7 54 8c b8 f8 be 7a 09 4a 5d fa 71 2a 86 2d  `.T....z.J].q*.-
  00000010  71 59 ff db 31 fb 72 86 24 5f 30 2b 42 55 72 2a  qY..1.r.$_0+BUr*
  00000020  60 01 d2 a8 4b b9 8a 15 d1 10 0c 15 60 30 66 c6  `...K.......`0f.
  00000030  d4 ac ed 56 64 c5 47 a1 a1 57 37 c6 4f f0 87 72  ...Vd.G..W7.O..r
  00000040  ff d8 9c be ee dc 90 0f 4c f1 f6 b7 94 62 b7 0f  ........L....b..
  00000050  15 fa b1 26 a8 c5 be 3c d8 5b 25 e6 d4 3c 32 c8  ...&...<.[%..<2.
  00000060  45 72 58 95 41 1b 1a 12                          ErX.A...
Incoming raw data
  00000000  bd 71 9a 68 3f b0 9c 1e 6a 11 7d f5 cf ed 0d e7  .q.h?...j.}.....
  00000010  c8 1e 2d 24 6f a1 aa 73 c9 a3 c1 e8 57 88 ab 00  ..-$o..s....W...
  00000020  06 f0 7f 1d 57 19 34 98 8c ee 47 32 d2 b0 8b 3a  ....W.4...G2...:
  00000030  72 01 8c 5b                                      r..[
Incoming packet type 91 / 0x5b (SSH2_MSG_CHANNEL_OPEN_CONFIRMATION)
  00000000  00 00 01 00 00 00 00 00 00 00 00 00 00 00 80 00  ................
Event Log: Opened channel for session
Outgoing packet type 2 / 0x02 (SSH2_MSG_IGNORE)
  00000000  00 00 00 00                                      ....
Outgoing packet type 98 / 0x62 (SSH2_MSG_CHANNEL_REQUEST)
  00000000  00 00 00 00 00 00 00 07 70 74 79 2d 72 65 71 01  ........pty-req.
  00000010  00 00 00 05 78 74 65 72 6d 00 00 00 50 00 00 00  ....xterm...P...
  00000020  18 00 00 00 00 00 00 00 00 00 00 00 10 03 00 00  ................
  00000030  00 7f 80 00 00 96 00 81 00 00 96 00 00           .............
Outgoing raw data
  00000000  7c 9e c6 6a 30 99 ee bc e9 0d 3b 4c 2f bc a2 19  |..j0.....;L/...
  00000010  45 7d ec fc 67 c5 bd bc c5 8c e7 07 65 84 64 1e  E}..g.......e.d.
  00000020  6a 20 e7 9a 29 77 f4 62 d1 55 d1 f3 2a 2e df 5c  j ..)w.b.U..*..\
  00000030  92 c4 60 51 b8 cc 9b 92 93 e8 aa ec 03 62 5f 5a  ..`Q.........b_Z
  00000040  7d b2 1c b9 7c 6c 6e 4c 6d 81 a2 98 17 23 7c 66  }...|lnLm....#|f
  00000050  3d e5 a9 7c 3f 87 4a f3 e7 c3 55 5c 11 ab bc c3  =..|?.J...U\....
  00000060  00 0a 46 a3 fc 07 f2 dc af 4b 08 91 20 66 17 d2  ..F......K.. f..
  00000070  b5 bb 40 24 50 58 9e 9c 02 10 27 0d 4d d3 fc 00  ..@$PX....'.M...
  00000080  c9 c1 c9 32 c4 c0 ad 15                          ...2....
Incoming raw data
  00000000  7b a2 be cc d2 7d eb 97 a6 85 0d a5 42 ce cc 9b  {....}......B...
  00000010  50 a8 0e da aa 8d bb 2a d2 9c 40 51 05 90 92 62  P......*..@Q...b
  00000020  e1 c6 84 a2                                      ....
Incoming packet type 99 / 0x63 (SSH2_MSG_CHANNEL_SUCCESS)
  00000000  00 00 01 00                                      ....
Event Log: Allocated pty (ospeed 38400bps, ispeed 38400bps)
Outgoing packet type 2 / 0x02 (SSH2_MSG_IGNORE)
  00000000  00 00 00 00                                      ....
Outgoing packet type 98 / 0x62 (SSH2_MSG_CHANNEL_REQUEST)
  00000000  00 00 00 00 00 00 00 05 73 68 65 6c 6c 01        ........shell.
Outgoing raw data
  00000000  a1 ee 44 ad 9b 08 3c 14 be f5 d9 da d9 e8 c7 ea  ..D...<.........
  00000010  38 69 05 54 f8 6d a3 43 40 b0 ab d3 5d 3d 8b a6  8i.T.m.C@...]=..
  00000020  2c 26 28 0d 70 33 48 89 ce b5 7b e4 ce a6 a1 94  ,&(.p3H...{.....
  00000030  e4 e5 4b e4 56 78 9a 0e 6d 7c 9c 3b 58 df cc 3d  ..K.Vx..m|.;X..=
  00000040  79 32 db da 28 39 10 fb 11 b7 a1 f5 c9 dc 09 6a  y2..(9.........j
  00000050  66 5f 6e 43 2a e8 b2 a4                          f_nC*...
Incoming raw data
  00000000  35 f2 d6 77 a1 a6 f2 96 0d 56 f5 3d c5 94 8d 05  5..w.....V.=....
  00000010  5d a9 b7 78 c0 c9 e4 a2 af d2 47 96 e8 f9 ee ba  ]..x......G.....
  00000020  77 06 75 93 84 ea 7e 9d 8f 01 ef ea ec 81 27 5a  w.u...~.......'Z
  00000030  3a 58 ad 0e 31 9a c2 5c 5c c0 a5 2d 9d 69 d9 74  :X..1..\\..-.i.t
  00000040  de 10 11 d3 98 eb 8e b4 59 c6 98 98 3b c0 d2 12  ........Y...;...
  00000050  7d 1d 3a 81 86 49 71 82                          }.:..Iq.
Incoming packet type 93 / 0x5d (SSH2_MSG_CHANNEL_WINDOW_ADJUST)
  00000000  00 00 01 00 00 20 00 00                          ..... ..
Incoming packet type 99 / 0x63 (SSH2_MSG_CHANNEL_SUCCESS)
  00000000  00 00 01 00                                      ....
Event Log: Started a shell/command
Incoming raw data
  00000000  05 41 c1 40 42 61 19 27 4b d4 33 e2 c2 06 72 83  .A.@Ba.'K.3...r.
  00000010  d2 f4 29 10 5b 29 43 4a 9f ac 69 db 22 63 52 7d  ..).[)CJ..i."cR}
  00000020  da 5a 08 ff 5b 0a a2 c1 e4 23 da 31 c0 02 cc d0  .Z..[....#.1....
  00000030  3a f6 48 2c d0 35 df 12 bb 81 f3 cd e2 3a ed 96  :.H,.5.......:..
  00000040  15 d4 93 7d d9 87 8d 0e 12 8b e0 64 5f cc e0 a0  ...}.......d_...
  00000050  6c 44 45 99 0b 34 36 e1 f5 72 dd 06 1e 6b e6 42  lDE..46..r...k.B
  00000060  6f 9b b2 a9 c9 c5 89 30                          o......0
Incoming packet type 94 / 0x5e (SSH2_MSG_CHANNEL_DATA)
  00000000  00 00 01 00 00 00 00 02 2d 2d                    ........--
Incoming packet type 94 / 0x5e (SSH2_MSG_CHANNEL_DATA)
  00000000  00 00 01 00 00 00 00 02 0d 0a                    ..........
Incoming raw data
  00000000  e7 ae 5c 54 09 db c2 9f b9 1d f1 2f ea df 5b c6  ..\T......./..[.
  00000010  8d ac 99 67 a4 f7 d6 78 e0 b5 72 55 8a 65 8a 62  ...g...x..rU.e.b
  00000020  30 e7 aa 3d c4 b2 34 13 ea a7 a1 e1 a4 58 27 b8  0..=..4......X'.
  00000030  4b 73 d5 a1 90 57 93 d1 fc 7a f4 91 2d e0 1a a8  Ks...W...z..-...
  00000040  df 40 ba c5 86 08 c9 6a f5 d8 88 ee c3 3e 67 f5  .@.....j.....>g.
  00000050  2f 64 d6 f7 f5 8e af ec 01 52 c4 61 22 0e cf 74  /d.......R.a"..t
  00000060  f8 d3 da 3b                                      ...;
Incoming packet type 94 / 0x5e (SSH2_MSG_CHANNEL_DATA)
  00000000  00 00 01 00 00 00 00 30 2d 2d 20 57 61 74 63 68  .......0-- Watch
  00000010  47 75 61 72 64 20 46 69 72 65 62 6f 78 20 4f 70  Guard Firebox Op
  00000020  65 72 61 74 69 6e 67 20 53 79 73 74 65 6d 20 53  erating System S
  00000030  6f 66 74 77 61 72 65 2e                          oftware.
Incoming raw data
  00000000  0e ce b2 37 6f 54 05 d0 43 e7 c0 16 8a ae ff 98  ...7oT..C.......
  00000010  f2 10 a5 7c 7b c7 b4 54 63 01 5a 33 fe 31 f7 c7  ...|{..Tc.Z3.1..
  00000020  4e 1e 12 ed 79 be 4a 3e 44 64 b0 53 de 18 a2 e4  N...y.J>Dd.S....
  00000030  19 17 62 36                                      ..b6
Incoming packet type 94 / 0x5e (SSH2_MSG_CHANNEL_DATA)
  00000000  00 00 01 00 00 00 00 02 0d 0a                    ..........
Incoming raw data
  00000000  f9 8d 53 7b a9 dd c3 62 7f 01 d9 d2 9a ee a4 21  ..S{...b.......!
  00000010  df f2 62 9e 8e 5c 54 30 d7 29 bf af 14 43 cb 60  ..b..\T0.)...C.`
  00000020  c5 48 c3 f1 0a 9c b4 59 52 b0 86 42 02 ea 43 97  .H.....YR..B..C.
  00000030  1f 65 d7 23 5c 96 03 44 e2 bd b9 ac 26 91 90 c6  .e.#\..D....&...
  00000040  9b 2f df cb 50 1d 0e 38 36 6c 5b 46 e0 fe ed 14  ./..P..86l[F....
  00000050  12 ce 6b 5b                                      ..k[
Incoming packet type 94 / 0x5e (SSH2_MSG_CHANNEL_DATA)
  00000000  00 00 01 00 00 00 00 20 2d 2d 20 46 69 72 65 77  ....... -- Firew
  00000010  61 72 65 20 58 54 4d 20 56 65 72 73 69 6f 6e 20  are XTM Version
  00000020  31 31 2e 34 2e 31 0d 0a                          11.4.1..
Incoming raw data
  00000000  e9 d5 eb 87 d6 3f c5 5f be ea 77 ce d1 b8 10 55  .....?._..w....U
  00000010  b6 6a b2 76 dc f9 b2 4d 7a d6 e0 62 ae 7c da 52  .j.v...Mz..b.|.R
  00000020  cd 54 d1 ce 71 92 2e fe 47 2e 36 b8 62 cd 4b 6c  .T..q...G.6.b.Kl
  00000030  d6 09 8b 9d bd 8b 7e ce 4a 15 e2 e9 d5 4e 86 92  ......~.J....N..
  00000040  c5 6a 13 91 7f b9 93 fe 3e 9f 53 74 dd 04 58 89  .j......>.St..X.
  00000050  79 39 84 7f f0 bc 9f 62 3e 12 70 e2 67 b1 fd 3b  y9.....b>.p.g..;
  00000060  9e 17 8f f9 d1 dc 43 0c 01 2f 93 bd bb 1a 6a 11  ......C../....j.
  00000070  06 d8 b6 c7                                      ....
Incoming packet type 94 / 0x5e (SSH2_MSG_CHANNEL_DATA)
  00000000  00 00 01 00 00 00 00 3f 2d 2d 20 53 75 70 70 6f  .......?-- Suppo
  00000010  72 74 3a 20 68 74 74 70 73 3a 2f 2f 77 77 77 2e  rt: https://www.
  00000020  77 61 74 63 68 67 75 61 72 64 2e 63 6f 6d 2f 73  watchguard.com/s
  00000030  75 70 70 6f 72 74 2f 73 75 70 70 6f 72 74 4c 6f  upport/supportLo
  00000040  67 69 6e 2e 61 73 70                             gin.asp
Incoming raw data
  00000000  b1 6f 5a ae e8 29 87 71 55 77 5c 63 b3 1a 1b 7c  .oZ..).qUw\c...|
  00000010  98 af 4d f1 3a 27 67 0e 23 68 0c 78 53 af 7e 02  ..M.:'g.#h.xS.~.
  00000020  78 b0 3d 39 d9 08 c4 65 a4 36 a4 2e e1 02 9c 1c  x.=9...e.6......
  00000030  5f 2c ae 34                                      _,.4
Incoming packet type 94 / 0x5e (SSH2_MSG_CHANNEL_DATA)
  00000000  00 00 01 00 00 00 00 02 0d 0a                    ..........
Incoming raw data
  00000000  41 77 ce 1b 77 67 7a bb 99 95 51 cc fb 76 fe ad  Aw..wgz...Q..v..
  00000010  ff 0a a4 a6 a6 1e ab 43 24 1d 3f b1 46 99 7c 2e  .......C$.?.F.|.
  00000020  5e 04 cc 0d 6c 92 35 99 d4 33 e5 37 e5 ab 2d ae  ^...l.5..3.7..-.
  00000030  dd 22 25 9c ab 6a 62 56 c1 b7 0e 90 88 97 61 f3  ."%..jbV......a.
  00000040  f2 9b 79 2a ce 54 f8 26 95 a1 3d 80 86 48 6d a7  ..y*.T.&..=..Hm.
  00000050  5b 07 60 05 fd 25 19 64 f3 55 df 79 5a 1a 2b 47  [.`..%.d.U.yZ.+G
  00000060  d9 30 26 0a                                      .0&.
Incoming packet type 94 / 0x5e (SSH2_MSG_CHANNEL_DATA)
  00000000  00 00 01 00 00 00 00 3b 2d 2d 20 43 6f 70 79 72  .......;-- Copyr
  00000010  69 67 68 74 20 28 63 29 20 31 39 39 36 2d 32 30  ight (c) 1996-20
  00000020  31 30 20 62 79 20 57 61 74 63 68 47 75 61 72 64  10 by WatchGuard
  00000030  20 54 65 63 68 6e 6f 6c 6f 67 69 65 73 2c 20 49   Technologies, I
  00000040  6e 63 2e                                         nc.
Incoming raw data
  00000000  af 36 60 a9 1e 2f 71 33 c4 27 34 12 ef 54 52 b3  .6`../q3.'4..TR.
  00000010  49 7f c1 f1 04 3e 05 0a 69 d6 6b 26 5e 01 16 94  I....>..i.k&^...
  00000020  2c 08 0a 84 18 5b 32 bf 4d d9 34 37 29 85 72 6d  ,....[2.M.47).rm
  00000030  73 b0 ae 10                                      s...
Incoming packet type 94 / 0x5e (SSH2_MSG_CHANNEL_DATA)
  00000000  00 00 01 00 00 00 00 02 0d 0a                    ..........
Incoming raw data
  00000000  bb 94 69 5b 88 30 e0 4b 2d fd de 8d d4 d5 df 46  ..i[.0.K-......F
  00000010  8a ec ac 4f a0 48 11 a7 bf 28 47 df 14 85 b5 ab  ...O.H...(G.....
  00000020  27 ee ff be 3d 7e 2e 33 39 51 d3 f8 df cc 52 01  '...=~.39Q....R.
  00000030  fc 3a c4 91                                      .:..
Incoming packet type 94 / 0x5e (SSH2_MSG_CHANNEL_DATA)
  00000000  00 00 01 00 00 00 00 02 2d 2d                    ........--
Incoming raw data
  00000000  c1 d0 89 40 48 9d 35 19 e1 0f ed 85 8d 50 8b bc  ...@H.5......P..
  00000010  b9 d0 fb 9b 44 08 06 1a 73 09 16 00 0a a6 af 24  ....D...s......$
  00000020  b9 b3 ee 8c 4f 46 62 cd a6 96 59 21 4b f3 87 4a  ....OFb...Y!K..J
  00000030  1d 96 ce 9b                                      ....
Incoming packet type 94 / 0x5e (SSH2_MSG_CHANNEL_DATA)
  00000000  00 00 01 00 00 00 00 02 0d 0a                    ..........
Incoming raw data
  00000000  53 a1 91 f8 7f 84 9e 39 89 32 b4 0b 09 c0 d9 4e  S......9.2.....N
  00000010  4e 32 58 82 7b 22 13 40 40 f8 98 08 75 05 fe 36  N2X.{".@@...u..6
  00000020  9c 1b b4 bd 92 5d 02 61 da 6c 7d 8b 2d f2 db b6  .....].a.l}.-...
  00000030  2c 83 28 ee                                      ,.(.
Incoming packet type 94 / 0x5e (SSH2_MSG_CHANNEL_DATA)
  00000000  00 00 01 00 00 00 00 01 57                       ........W
Incoming raw data
  00000000  aa c8 73 ec 03 6b d4 9c 79 3b c3 11 8a 58 56 67  ..s..k..y;...XVg
  00000010  0f 36 eb bf 70 40 47 aa df 4e ef 0e b2 f7 34 39  .6..p@G..N....49
  00000020  8b cc b6 c3 46 b4 35 19 ce 0c e3 04 6b 42 fa da  ....F.5.....kB..
  00000030  73 e7 bf 66                                      s..f
Incoming packet type 94 / 0x5e (SSH2_MSG_CHANNEL_DATA)
  00000000  00 00 01 00 00 00 00 01 47                       ........G
Incoming raw data
  00000000  f5 7b 8c cf 12 cd 98 4d 5a 77 b7 56 0c 8c 92 c0  .{.....MZw.V....
  00000010  03 2c 21 4c 3a 17 d5 80 1c a6 79 f0 82 29 99 67  .,!L:.....y..).g
  00000020  ca 27 e5 c1 79 f7 dd 0a 97 bd 2e 93 f5 84 2c c1  .'..y.........,.
  00000030  76 a7 df 54                                      v..T
Incoming packet type 94 / 0x5e (SSH2_MSG_CHANNEL_DATA)
  00000000  00 00 01 00 00 00 00 01 3e                       ........>
Outgoing packet type 2 / 0x02 (SSH2_MSG_IGNORE)
  00000000  00 00 00 00                                      ....
Outgoing packet type 94 / 0x5e (SSH2_MSG_CHANNEL_DATA)
  00000000  00 00 00 00 00 00 00 01 77                       ........w
Outgoing raw data
  00000000  1c 55 81 74 45 75 41 ff fc 45 62 7b 79 61 d3 35  .U.tEuA..Eb{ya.5
  00000010  2f 6f 39 29 ff 77 b3 c0 90 4b fe 8a 79 3f 05 d2  /o9).w...K..y?..
  00000020  af b0 60 32 4f 67 1d 84 d4 82 18 4f 3c f0 43 6f  ..`2Og.....O<.Co
  00000030  eb 86 a9 8c 19 d8 1a 46 0a 48 89 b4 6c d8 08 f9  .......F.H..l...
  00000040  2f d0 6c 01 bf 6a 75 19 0e 90 c7 d8 99 2a 13 bc  /.l..ju......*..
  00000050  e4 ce c5 d8 02 57 c2 f6                          .....W..
Incoming raw data
  00000000  06 70 37 4c 44 a7 7e 6d 5f 60 42 53 f6 11 bf 01  .p7LD.~m_`BS....
  00000010  09 0c d7 f0 1c 62 c3 13 e2 ec da 79 8c 12 97 4b  .....b.....y...K
  00000020  6e f5 d6 fa c2 63 21 db 41 df f4 fa 05 1e a0 0a  n....c!.A.......
  00000030  01 5d d9 c6                                      .]..
Incoming packet type 94 / 0x5e (SSH2_MSG_CHANNEL_DATA)
  00000000  00 00 01 00 00 00 00 01 77                       ........w
Outgoing packet type 2 / 0x02 (SSH2_MSG_IGNORE)
  00000000  00 00 00 00                                      ....
Outgoing packet type 94 / 0x5e (SSH2_MSG_CHANNEL_DATA)
  00000000  00 00 00 00 00 00 00 01 68                       ........h
Outgoing raw data
  00000000  91 25 d8 3b b8 bd 12 e3 00 7a 39 f4 dc 2e d3 05  .%.;.....z9.....
  00000010  2a a4 e2 35 64 21 f9 5c 18 91 a1 0c 9e c0 d8 2d  *..5d!.\.......-
  00000020  9d 94 d5 10 91 bb 3f 46 3a 80 4f ac 13 86 bc e3  ......?F:.O.....
  00000030  c4 5b 86 57 a0 55 6e ee fa 8c b7 5a 55 b1 28 a1  .[.W.Un....ZU.(.
  00000040  db e0 71 49 07 ca 31 ac a0 09 4f c3 4e 1b 96 8c  ..qI..1...O.N...
  00000050  4f 39 93 77 14 b3 79 cc                          O9.w..y.
Incoming raw data
  00000000  8d d7 5e b1 8f 3f d7 1e 0c 44 63 83 01 eb c1 62  ..^..?...Dc....b
  00000010  0a 4d 84 84 d6 97 da 07 f3 cd 2b 78 99 f5 8a cb  .M........+x....
  00000020  f9 e4 7c 7b 56 3c 30 a5 a4 ae b9 c9 90 ae 1e 24  ..|{V<0........$
  00000030  4f 6a 5a 59                                      OjZY
Incoming packet type 94 / 0x5e (SSH2_MSG_CHANNEL_DATA)
  00000000  00 00 01 00 00 00 00 01 68                       ........h
Outgoing packet type 2 / 0x02 (SSH2_MSG_IGNORE)
  00000000  00 00 00 00                                      ....
Outgoing packet type 94 / 0x5e (SSH2_MSG_CHANNEL_DATA)
  00000000  00 00 00 00 00 00 00 01 6f                       ........o
Outgoing raw data
  00000000  b9 4b 3e 3f 5f a6 00 ed 80 0d 24 e6 d0 42 1b b2  .K>?_.....$..B..
  00000010  63 3b 92 17 1e 36 b9 56 55 20 48 0b b2 37 5e 1f  c;...6.VU H..7^.
  00000020  0f 96 ab 33 f8 18 ea 79 2a e3 9e 30 cd f8 d7 35  ...3...y*..0...5
  00000030  d0 56 77 b4 16 36 5c 11 ec ad bc 29 3c 54 23 b6  .Vw..6\....)<T#.
  00000040  dc e5 c3 e0 28 48 f8 28 4d 7a 59 d9 93 c1 36 2a  ....(H.(MzY...6*
  00000050  a5 7f 48 99 c8 e1 37 8d                          ..H...7.
Incoming raw data
  00000000  6d 11 f3 cf 66 ac e9 41 9e fc 71 3f 6f d9 0f 89  m...f..A..q?o...
  00000010  b9 ea d3 ac 1d b0 0e c7 5c 47 66 84 cd 9b 65 2a  ........\Gf...e*
  00000020  5e 5a 46 37 33 02 3c 0b c0 f1 85 4b 9b 79 05 94  ^ZF73.<....K.y..
  00000030  94 2c 7e dd                                      .,~.
Incoming packet type 94 / 0x5e (SSH2_MSG_CHANNEL_DATA)
  00000000  00 00 01 00 00 00 00 01 6f                       ........o
Outgoing packet type 2 / 0x02 (SSH2_MSG_IGNORE)
  00000000  00 00 00 00                                      ....
Outgoing packet type 94 / 0x5e (SSH2_MSG_CHANNEL_DATA)
  00000000  00 00 00 00 00 00 00 01 0d                       .........
Outgoing raw data
  00000000  4d 0c 27 96 68 3b fb f0 5f 98 c9 53 a2 56 98 5d  M.'.h;.._..S.V.]
  00000010  d0 6a 87 33 67 fc 7e ee 3a 07 78 cb 37 d2 d0 40  .j.3g.~.:.x.7..@
  00000020  46 36 92 e9 66 f4 0d 9d 2a fa 13 bd bf 19 c0 03  F6..f...*.......
  00000030  ac be 82 cc 91 de 07 17 00 95 a9 d1 e4 d5 9f a1  ................
  00000040  94 16 c9 9f c9 38 b1 ad aa f4 ea 7c db a5 2f e0  .....8.....|../.
  00000050  34 60 3d 02 43 b4 64 de                          4`=.C.d.
Incoming raw data
  00000000  85 fc 3b 21 52 87 3b 4c 11 fa 82 7a e3 ff 83 ff  ..;!R.;L...z....
  00000010  7c f6 06 d2 e6 6b c6 8e ad d5 f7 a5 2c f6 41 fe  |....k......,.A.
  00000020  ec 16 19 c9 71 ab fe 11 7b 90 de b4 63 40 5e ed  ....q...{...c@^.
  00000030  ee d1 28 2a                                      ..(*
Incoming packet type 94 / 0x5e (SSH2_MSG_CHANNEL_DATA)
  00000000  00 00 01 00 00 00 00 02 0d 0a                    ..........
Incoming raw data
  00000000  ce ce 5b 7c 12 b6 46 95 94 d0 27 9c 82 be a4 9c  ..[|..F...'.....
  00000010  c5 c5 b1 15 0d e3 71 23 f7 7f 31 71 aa af ed 02  ......q#..1q....
  00000020  0d a8 d9 92 4e f3 db a1 da 63 2b c5 ab c0 4b 54  ....N....c+...KT
  00000030  52 33 54 15 51 d3 64 2b 24 5d 7c ea 79 d1 47 b3  R3T.Q.d+$]|.y.G.
  00000040  7e a5 2e 94 9d 6c c7 30 9a 63 14 3b 17 04 77 52  ~....l.0.c.;..wR
  00000050  db 23 56 d8 14 5e 23 57 45 c8 38 8d 2a 1c f0 db  .#V..^#WE.8.*...
  00000060  15 da f4 5d fd b6 50 9e d2 83 37 05 39 fd 10 b9  ...]..P...7.9...
  00000070  0c 53 c3 ae                                      .S..
Incoming packet type 94 / 0x5e (SSH2_MSG_CHANNEL_DATA)
  00000000  00 00 01 00 00 00 00 41 55 73 65 72 20 4e 61 6d  .......AUser Nam
  00000010  65 20 20 20 20 20 20 20 46 72 6f 6d 20 20 20 20  e       From   
  00000020  20 20 20 20 20 20 20 20 41 63 63 65 73 73 20 52          Access R
  00000030  69 67 68 74 20 20 20 20 53 65 73 73 69 6f 6e 20  ight    Session
  00000040  49 44 20 20 20 20 20 0d 0a                       ID     ..
Incoming raw data
  00000000  6b f5 89 28 f4 7f 57 c6 b8 bd 2a ce 11 ee 98 53  k..(..W...*....S
  00000010  59 de 6f b2 6f 22 9f 0c 5e b8 6f a4 c2 91 7a 62  Y.o.o"..^.o...zb
  00000020  de b2 0c d4 43 ef 03 13 2f 64 9f f7 d2 4f 51 b1  ....C.../d...OQ.
  00000030  3a 66 7f 02 ae d5 44 02 7f 61 39 9a e2 1f 19 af  :f....D..a9.....
  00000040  bd 78 fb 13 49 5f d7 a6 51 74 49 50 0b 47 fd f9  .x..I_..QtIP.G..
  00000050  36 22 df da 72 91 c2 68 d9 8f fe a6 e9 e4 d7 bb  6"..r..h........
  00000060  49 e7 c9 41 cc 27 2e 3e e9 b9 43 d3 49 06 fd 7e  I..A.'.>..C.I..~
  00000070  8f 38 67 f0                                      .8g.
Incoming packet type 94 / 0x5e (SSH2_MSG_CHANNEL_DATA)
  00000000  00 00 01 00 00 00 00 41 73 74 61 74 75 73 20 20  .......Astatus 
  00000010  20 20 20 20 20 20 20 20 31 30 2e 31 30 2e 31 30          10.10.10
  00000020  2e 31 32 20 20 20 20 20 52 4f 20 20 20 20 20 20  .12     RO     
  00000030  20 20 20 20 20 20 20 20 31 39 20 20 20 20 20 20          19     
  00000040  20 20 20 20 20 20 20 0d 0a                              ..
Incoming raw data
  00000000  cc 1b ad f3 40 e2 a6 b6 f7 d7 8c a3 cc c9 61 c6  ....@.........a.
  00000010  06 82 90 d0 4a ab ad a0 b2 ca 9e f6 5a f2 e0 8c  ....J.......Z...
  00000020  e2 cc 63 6a 11 71 54 2b 74 77 2e b1 06 80 08 35  ..cj.qT+tw.....5
  00000030  42 bb 6a f1 10 88 4e b8 34 26 5c 8c 4b e5 0f 5a  B.j...N.4&\.K..Z
  00000040  38 80 a6 30 43 27 7b ba a4 ae e2 f5 fe c5 bf f0  8..0C'{.........
  00000050  db 5f b7 e4 97 f1 77 4b 43 08 2f 32 02 13 4f 12  ._....wKC./2..O.
  00000060  df 5f 04 4c d0 23 ae 18 81 a4 a8 e8 f1 80 25 56  ._.L.#........%V
  00000070  d7 76 e5 d1                                      .v..
Incoming packet type 94 / 0x5e (SSH2_MSG_CHANNEL_DATA)
  00000000  00 00 01 00 00 00 00 41 73 74 61 74 75 73 20 20  .......Astatus 
  00000010  20 20 20 20 20 20 20 20 31 30 2e 31 30 2e 31 30          10.10.10
  00000020  2e 31 32 20 20 20 20 20 52 4f 20 20 20 20 20 20  .12     RO     
  00000030  20 20 20 20 20 20 20 20 32 30 20 20 20 20 20 20          20     
  00000040  20 20 20 20 20 20 20 0d 0a                              ..
Incoming raw data
  00000000  39 7a 87 5c 06 c7 43 eb 79 a6 b3 26 d6 ce 01 71  9z.\..C.y..&...q
  00000010  08 ba f1 4e c3 85 1c 69 81 a5 2e 99 08 f5 c3 83  ...N...i........
  00000020  74 6e 8e f3 41 c2 f9 f7 ec 98 97 f3 6f 1f a1 7a  tn..A.......o..z
  00000030  31 cf 93 03                                      1...
Incoming packet type 94 / 0x5e (SSH2_MSG_CHANNEL_DATA)
  00000000  00 00 01 00 00 00 00 01 57                       ........W
Incoming raw data
  00000000  52 50 24 c5 a0 0f 6a 7f 9b 2f b5 dc 70 f1 b0 d7  RP$...j../..p...
  00000010  ff 5b 0c 9e 7a 03 e5 d0 a9 49 66 b9 09 00 21 c1  .[..z....If...!.
  00000020  e2 79 62 f9 8d 04 a7 bb 73 3a e8 a7 e5 a5 49 5c  .yb.....s:....I\
  00000030  e0 e0 f5 a9                                      ....
Incoming packet type 94 / 0x5e (SSH2_MSG_CHANNEL_DATA)
  00000000  00 00 01 00 00 00 00 01 47                       ........G
Incoming raw data
  00000000  b9 ff de d2 a9 2c 9e 4d 7d 13 ef 92 cc 0b 8b 88  .....,.M}.......
  00000010  9c fb a7 41 a8 39 dd 84 96 6a 8f 57 ba 7f e7 35  ...A.9...j.W...5
  00000020  91 3c 53 7c 63 7a f8 d9 d5 49 ae b5 8b 09 35 45  .<S|cz...I....5E
  00000030  0b 2e 9d ad                                      ....
Incoming packet type 94 / 0x5e (SSH2_MSG_CHANNEL_DATA)
  00000000  00 00 01 00 00 00 00 01 3e                       ........>

Apr 20, 2011 at 3:53 PM

Ok,

I think I found the problem. Apparently this servers supports only one method of authentication and this is keyboard interactive. So to connect to the server you need to use this code:

            var connectionInfo = new KeyboardInteractiveConnectionInfo("host", 22, "username");

            connectionInfo.AuthenticationPrompt += delegate(object sender, AuthenticationPromptEventArgs e)
            {
                Console.WriteLine(e.Instruction);

                foreach (var prompt in e.Prompts)
                {
                    Console.WriteLine(prompt.Request);
                    prompt.Response = Console.ReadLine();
                }
            };


This is in case of Console application. To do everything from the code you need to do use this:

            var connectionInfo = new KeyboardInteractiveConnectionInfo("host", 22, "username");

            connectionInfo.AuthenticationPrompt += delegate(object sender, AuthenticationPromptEventArgs e)
            {
                foreach (var prompt in e.Prompts)
                {
                    if (prompt.Request.Equals("password", StringComparison.InvariantCultureIgnoreCase))
                    {
                        prompt.Response = "password";
                    }
                }
            };

I do need to throw an exception in this case somehow I think, or some other way to notify the user.

Hope it helps,

Thanks,

Oleg

Apr 20, 2011 at 3:59 PM

Ok, my application needs to have the password hardcoded so I´ll try the second alternative.

Do you by any chance have the code snippet in a Visual Basic version, which would speed things(c# conversion..) up for me.. ;)

 

And many thanks for your excellent support Oleg!

Apr 20, 2011 at 4:02 PM

Hm, sorry, unfortunatly I dont have a VB version as I use C# only,

but basivlly what happens here is I am handling an AuthenticationPrompt event.

So you can replace the delegate with simple event handling like you usually would do in VB.NET.

 

Oleg

Apr 20, 2011 at 4:17 PM
nackros wrote:

Ok, my application needs to have the password hardcoded so I´ll try the second alternative.

Do you by any chance have the code snippet in a Visual Basic version, which would speed things(c# conversion..) up for me.. ;)

 

And many thanks for your excellent support Oleg!

There are some pretty decent C# to VB code converters out there in Googleland

Apr 20, 2011 at 5:02 PM

Sorry for this meganoob and perhaps offtopic request, but I fail in converting the above c# to vb..

I have tried a couple of conversion tools but non produces correct code.

The main issue is the delegate command which confuses both me and the conversion tools.. ;)

Is there any of you helpful coders how can help me with this conversion?

thanks!

//Andreas..

Apr 20, 2011 at 7:20 PM

Never dealt with VB at all, so I wish I could be more help...

Apr 21, 2011 at 7:55 AM
Edited Apr 21, 2011 at 8:09 AM

Hmmm, perhaps I´ll abandon VB and go for C# instead, but I´m a total beginner when it comes to C# I´m afraid.

Would it be too much to ask of you to help me with how the C# code would look for my small project?

It must use Olegs second keyboard interactive variant with the integrated password.

Otherwise the code should to what my VB code at the top does, which is:

1. connect to my device with user and password

2. send the command "who"

3. display the result in a richtextbox

4. disconnect

 

Thanks in advance!

//Andreas..

Apr 21, 2011 at 2:23 PM

Andreas,

Here is an example of static who function:

        private static string Who(string host, string username, string password)
        {
            var connectionInfo = new KeyboardInteractiveConnectionInfo(host, 22, username);

            connectionInfo.AuthenticationPrompt += delegate(object sender, AuthenticationPromptEventArgs e)
            {
                foreach (var prompt in e.Prompts)
                {
                    if (prompt.Request.Equals("password", StringComparison.InvariantCultureIgnoreCase))
                    {
                        prompt.Response = password;
                    }
                }
            };

            using (var ssh = new SshClient(connectionInfo))
            {
                ssh.Connect();
                var cmd = ssh.RunCommand("who");
                return cmd.Result;
            }
        }

It will return you the who result.

After you get the result you can do with it whatever you need.

 

Hope it helps a little.

 

Thanks,

Oleg

Apr 21, 2011 at 2:32 PM
Edited Apr 21, 2011 at 2:33 PM

EDIT: Had a code snippet, Oleg's is better haha

Apr 28, 2011 at 12:25 PM
Edited Apr 28, 2011 at 12:35 PM

Hi guys!

Sorry for the delay of my response but I´ve out of office for the last week.

Thanks a lot for you help!

I decided to continue with VB since the rest of the application is in VB, and I got som help from VBForums to translate the code for the Keyboard Interactive method.

Unfortunately I can´t get it to work.

Heres the code:

 

Imports Renci.SshClient
Imports Renci.SshClient.Common

Dim connectionInfo = New KeyboardInteractiveConnectionInfo("10.10.10.1", 4118, "user")
        AddHandler connectionInfo.AuthenticationPrompt, _
            Sub(_sender As Object, _e As AuthenticationPromptEventArgs)
                For Each prompt In _e.Prompts
                    Debug.Print(prompt.Request)
                    If prompt.Request.Equals("Password: ", StringComparison.InvariantCultureIgnoreCase) Then
                        prompt.Response = "password"
                    End If
                Next
            End Sub
        '
        Using client As New SshClient(connectionInfo)

            client.Connect()

            Dim cmd As SshCommand
            Dim result As String

            cmd = client.CreateCommand("who")  ' funkar b�st i WG

            result = cmd.Execute

            RichTextBox1.Text = result

            client.Disconnect()
        End Using

 

After lots of debugging I can see that the Debug.Print gets the correct string from the device and it enters the If section and runs the prompt.Response command with the correct password.

But when I check the properties of the connectionInfo, the IsAuthenticated variable is set to "False". And subsequently the client.Connect() command fails since it couldn´t create the client in the line above.

One thing I noticed is that the Event Sub runs two times. The first time it gets the "Password: " string and the second time it gets nothing, but still runs(an event triggered).

Any ideas why I still can´t connect properly?

Thanks in advance!

//Andreas..

Apr 28, 2011 at 3:14 PM

The fact that it runs twice, I wouldnt worry about it since this is what server requests and there is nothing I can do about it but allowing users to response to empty request if needed.

As far as IsAuthenticated property, it should be set to true only after you successfully connect to the server.

What happens that you cannot connect, does it hangs again or throws some other error?

 

Thanks,

Oleg

Apr 28, 2011 at 3:25 PM

I must have done something different now, but I can´t figure out what, since with the same code as above it seems to connect and authenticate but when I execute the command it just hangs.

So the code hangs on the line "result = cmd.Execute" and I have tried different commands but nothing makes a difference. No error message at all.

In the Watchguard I can see that I have authenticated correctly with correct password, so atleast I´m doing something right.. ;)

I will also hopefully be able to give you access to a public IP on the firewall tomorrow, and an account so you can test this yourself if you like?

 

//Andreas..

Apr 28, 2011 at 3:29 PM

Ok, no problem,

Yea if you dont mind, you can send to me privately and I will try to connect and see where the problem is and hopefully to solve it.

Thanks,

Oleg

Apr 29, 2011 at 8:31 AM

Oleg, I have sent to connection information to you privately now, so hopefully you can figure out how to connect to my device and send commands and recieve the outputs.

Thanks,

//Andreas..

Apr 30, 2011 at 4:24 AM

Andreas,

 

I guess I have bad news.

It looks like watchguard server  implementation does not allow to open command execution channels, the one I use to execute single command.

 

All it returns is this: "--\n-- WatchGuard Firebox Operating System Software.\n-- Fireware XTM Version 11.4.1\n-- Support: https://www.watchguard.com/support/supportLogin.asp\n-- Copyright (c) 1996-2010 by WatchGuard Technologies, Inc.\n--\n"

 

So it looks to me is that they lock this option for security reasons I assume.

I guess the only option is to use shell. Shell is not completed and I developed it just to try this feature but its almost fully functional. I will try to put some examples on how to use it later. But this is codesni[[et that I have in my local tests that I used before:

                var result = ssh.RunCommand("tail -f /var/log/auth.log");
                var input = new MemoryStream(Encoding.ASCII.GetBytes("sudo ufw status\r\nPassword\r\n"));
                //var input = Console.OpenStandardInput();
                var shell = ssh.CreateShell(input, Console.Out, Console.Out, "xterm", 80, 24, 800, 600, "");
                shell.Stopped += delegate(object sender, EventArgs e)
                {
                    Console.WriteLine("\nDisconnected...");
                };
                shell.Start();
                Thread.Sleep(1000 * 1000);
                shell.Stop();

May it will help.

 

But, to answer the original question, why it hangs. Its because server suppose to send "close channel" packet, which I am waiting for, but never receive.

 

Thanks,

Oleg

--\n-- WatchGuard Firebox Operating System Software.\n-- Fireware XTM Version 11.4.1\n-- Support: https://www.watchguard.com/support/supportLogin.asp\n-- Copyright (c) 1996-2010 by WatchGuard Technologies, Inc.\n--\n"
"--\n-- WatchGuard Firebox Operating System Software.\n-- Fireware XTM Version 11.4.1\n-- Support: https://www.watchguard.com/support/supportLogin.asp\n-- Copyright (c) 1996-2010 by WatchGuard Technologies, Inc.\n--\n"
May 3, 2011 at 1:52 PM

I also had the same problem but solved by putting a small check in the Shell.Stop() method. if channel is open than close else not. Because there was two thread which was aquiring the wait handle and going in infinite loop. see if it works for you..

if (this._channel.IsOpen)
            {
                this._channel.Close();
            }

May 3, 2011 at 3:35 PM

In this case I am talking about different channel, the one that opens to execute single command, it remains hung.

Also, it does not return correct response back but some firmware information which tells me this server does not support it :(

May 3, 2011 at 3:55 PM

I started an incident with the Watchguard support regarding this but it might take a while for them to understand the question, since the first reply I got was from someone who obviously doesn´t know what SSH is.. ;)

Hopefully my question climbs a bit up in their supportlevels so I can get a real answer. ;)

I haven´t been able to start testing Shell yet, but did you(Oleg) manage to connect to the WG and run a command using your snippet above?

To provide a little more information to this, I also tried to use Puttys companion app Plink to connect and run a command all in one commandline, but this did not work om the Watchguard, but on all my other devices...

Using Plink I can automatically login with the correct username and password and get a working command prompt on the Watchguard, but I cannot run any command. It only hangs.

//Andreas..

May 3, 2011 at 4:03 PM

I did run this code:

 

            using (var ssh = new SshClient(connectionInfo))
            {
                ssh.Connect();
                var input = new MemoryStream(Encoding.ASCII.GetBytes("who\r\n"));
                var shell = ssh.CreateShell(input, Console.Out, Console.Out, "xterm", 80, 24, 800, 600, "");
                shell.Stopped += delegate(object sender, EventArgs e)
                {
                    Console.WriteLine("\nDisconnected...");
                };
                shell.Start();
                Thread.Sleep(1000 * 1000);
                shell.Stop();
            }

and got this output:

who

--
-- WatchGuard Firebox Operating System Software.
-- Fireware XTM Version 11.4.1
-- Support: https://www.watchguard.com/support/supportLogin.asp
-- Copyright (c) 1996-2010 by WatchGuard Technologies, Inc.
--
WG>who
User Name       From            Access Right    Session ID
s****s          152.XX.X.XXX    RO              3**
WG>
WG>

 

I masked username and IP address just in case.

So what you can do is instead using Console.Out use some other stream to capture output and then parse it to extract data that you need.

 

Hope it helps.

Oleg

May 4, 2011 at 1:34 PM

When I run your code it outputs the string: System.Byte[]System.Byte[]System.Byte[]System.Byte[]System.Byte[]..... and so on.

It continues quite a bit longer than that. Any idea what that is?

May 4, 2011 at 1:48 PM

Yes,

Tried to use the latest checked in code. I had it fixed "Fix shell byte output" but not released yet.

The whole Shell implemention was not inteded to be used at first. I initially implemented it just to see if I could and so see how it would behave. So I guess at some point I will have to give it another look.

 

Thanks,

Oleg

May 4, 2011 at 2:02 PM

Well, at least I have given you a reason to implement the Shell feature then? ;)

Is is possible to release the latest version of your dll within the hour? (just joking.. ;))

If I get the correct output using Shell I think I can get it to work with my Watchguard, which would be great!

May 4, 2011 at 2:18 PM

:):)

I think by now I have quite few features that I want to implement already based on the input I am getting lately.

 

I can do a new release, no problem, I usually wait for a few features to add up, so I think I have few of them already there so I could do it some time later today if you like.

See if you can use latest source code version and see if it works in your scenario. You can always download it as a project, compile and use that DLL. Thats what I would do when I would release the version anyway.

 

Thanks,

Oleg

May 4, 2011 at 3:05 PM

Ok, i compiled your latest version and used that new dll, with the added "bonus" of having your sourcecode when debugging in VB. Pretty nice. ;)

And then the text output was fine! But it seems that the string "who\r\n" is sent to the server as just that and no line feed.

So the output starts with who\r\n and ends with who\r\n. And obviously the command don´t work so I´m not getting the correct answer as you apparently did.

Any idea why it´s not interpreted as linefeed for me?

 

Thanks!

//Andreas..

May 4, 2011 at 3:13 PM

Ooops, sorry.

Figured it out... In VB you can´t use such strings as \r\n. You have to add ControlChars.NewLine to the string.

So it seems to work!

One thing remains though. The application still hangs. And this time it´s on the Shell.Stop() line. Any ideas why?

May 4, 2011 at 3:28 PM

Well,

It looks like I have some kind of bug, when it comes to closing shell channel. For some reason I am closing it twice, and second time it just hungs ( thats what I managed to find in last 5 minutes).

so I will try to take a look at it later today again and see if I can fix it.

Thanks,

Oleg

May 5, 2011 at 3:15 AM

Sorry mate,

I'm not sure whether I should post here. But my program hangs as well:

First try:

Command: ls

Console: correct result

WPF: correct result

Second try:

Command: promote /projects/wwwtest/content/test/index1.html (This "promote" is used to publish the file to another directory)

Console: correct result

WPF: hang

Sample codes:

var cmd = "promote /projects/wwwtest/content/test/index1.html";
var result = string.Empty;

using (var client = new SshClient(_hostName, _userName, _password))
{
  client.Connect();
  var command = client.RunCommand(cmd);
  result = command.Result;
  client.Disconnect();
}

textBox1.Text = result;
May 5, 2011 at 4:21 PM

Andreas,

 

I just checked in a fix for the bug where it hungs when closing Shell session. Please let me know if it works for you.

jncodex,

I think this could be a different issue. It depends on what server you trying to connect to,

Try to use Shell object as described above to see if it lets you to execute commands this way.

 

Thanks,

Oleg

May 5, 2011 at 9:48 PM

Why do you Thread.Sleep for so long in you shell example code (1000 * 1000) Oleg?

May 6, 2011 at 3:48 AM

 

Just some kind of timeout to keep the shell running.

 

I am thinking of new way to use shell, where you can execute commands so once  have it place I will post some new Shell usage example, or better update CHM file which I haven't done for a while now.

 

Thanks,

Oleg

May 6, 2011 at 10:18 AM

Oleg,

I will test your latest version on monday, and I´ll let you know how it goes.

And it would be really great if you added functions to execute commands via Shell in the same manner as normal SSH commands, like you said. Especially if you could capture the results the same way it would be a great addition to your excellent DLL!

If possible I´d also like to see some function to test the device to see which methods(SSH commands/SSH Shell) are supported.

 

BTW, if you want, I could help you adding VB.NET examples to your CHM file, to complement your C# examples? Just let me know.

 

Thanks!

//Andreas..

May 7, 2011 at 1:10 PM

Oleg,

I tested on console, it works well. But I cannot get the expected result by using my previous codes in WPF. My Console codes here:

string _line = "promote /projects/wwwtest/content/test/index1.html";

using (var ssh = new SshClient(_hostName, _userName, _password))
{
    ssh.Connect();
    var input = new MemoryStream(Encoding.ASCII.GetBytes(_line + Environment.NewLine));
    var shell = ssh.CreateShell(input, Console.Out, Console.Out, "xterm", 80, 24, 800, 600, "");
    shell.Stopped += delegate(object sender, EventArgs e)
    {
        Console.WriteLine("\nDisconnected...");
    };

    shell.Start();
    Thread.Sleep(1000 * 1000);
    shell.Stop();
}
May 9, 2011 at 10:14 AM

Oleg,

I tested your latest version and now it works as expected! I can now run any command on a Watchguard firewall which is what I wanted! Thank you very very much Oleg!

Of course there´s room for improvements.. ;)

It would be great if there were a way to know when the command finished, instead of guessing the time it took. I ´m using a 5 second timeout now which works. If I remove the Thread.Sleep altogether the command doesn´t have the time to run. Of course I could try to parse the output from the Shell to detect the result but that´s not the optimal way.

But I guess that if you implement some easier way to run a command via Shell you would implement a way to get the results from the command which would indicate when it´s finished.

 

Anyway, thanks a lot Oleg for you excellent work!

//Andreas..

May 9, 2011 at 12:31 PM

Hi again,

A little problem has occured.

It seems that when the command has run, and I have issued the shell.Stop() and client.Disconnect(), I am still logged in to my device and I have to wait for my session to timeout before I can run the command again.

Even if I close my program and restart it I´m still logged in. How can I fix this? I know that if I run the command "exit" it will log me out so how can run two commands before I issue shell.Stop()?

Or is it a bug in your code that don´t correctly close the session with the device?

 

//Andreas..

May 9, 2011 at 7:13 PM

Hi Andreas,

 

I made some changes today, so you can try it again.

Here some code that might better fit your scenario, where you dont have to call Stop method but you can simply issue "exit" command from the shell.

            using (var ssh = new SshClient(connectionInfo))
            {
                ssh.Connect();
                var wait = new AutoResetEvent(false);
                var shell = ssh.CreateShell(Console.OpenStandardInput(), Console.OpenStandardOutput(), Console.OpenStandardError(), "xterm", 80, 24, 800, 600, "");
                shell.Stopped += delegate(object sender, EventArgs e)
                {
                    Console.WriteLine("\nDisconnected...");
                    //shell.Stop(); You dont have to call this method.
                    wait.Set();
                };
                shell.Start();
                wait.WaitOne();
            }

Hope it helps.

 

Thanks,

Oleg

May 10, 2011 at 8:57 AM

Hmm, I don´t think I understand where I should insert code to run my 2 sets of commands in you snippet above.

Can you please explain how your code works?

 

//Andreas..

May 10, 2011 at 3:58 PM

Hey,

 

This is an example of what I have so far:

            using (var ssh = new SshClient(connectionInfo))
            {
                ssh.Connect();
                var wait = new AutoResetEvent(false);
                var command = new MemoryStream();
                var writer = new StreamWriter(command, Encoding.ASCII);
                writer.WriteLine("ls -l\r\nexit");
                writer.Flush();
                command.Seek(0, SeekOrigin.Begin);
                var output = new MemoryStream();
                //var shell = ssh.CreateShell(Console.OpenStandardInput(), Console.OpenStandardOutput(), Console.OpenStandardError(), "xterm", 80, 24, 800, 600, "");
                var shell = ssh.CreateShell(command, output, output, "xterm", 80, 24, 800, 600, "");
                shell.Stopped += delegate(object sender, EventArgs e)
                {
                    Console.WriteLine("\nDisconnected...");
                    //shell.Stop();
                    wait.Set();
                };
                shell.Start();
                wait.WaitOne();
                var reader = new StreamReader(output, Encoding.ASCII);
                output.Seek(0, SeekOrigin.Begin);
                var result = reader.ReadToEnd();
            }

This will execute "ls -l" command and then will exit and the output of the command will be returned into output stream and then read into result variable.

Then you can parse your result and extract information that you need.

This is a little bit ugly or cumbersome in my eyes so I would like to come up with more elegant solution and wrap all stream work into library but for now you can do that and it will work so just wanted to provide you with quick solution.

Hope it helps.

Thanks,

Oleg

May 10, 2011 at 4:14 PM

I just checked in a new version where you can use a shorter version:

            using (var ssh = new SshClient(connectionInfo))
            {
                ssh.Connect();
                var wait = new AutoResetEvent(false);
                var output = new MemoryStream();
                var shell = ssh.CreateShell(Encoding.ASCII, "ls -l\r\nexit", output, output);
                
                shell.Stopped += delegate(object sender, EventArgs e)
                {
                    Console.WriteLine("\nDisconnected...");
                    //shell.Stop();
                    wait.Set();
                };
                shell.Start();
                wait.WaitOne();

                output.Seek(0, SeekOrigin.Begin);
                var result = new StreamReader(output, Encoding.ASCII).ReadToEnd();
                Console.Write(result);
            }

Oleg

May 10, 2011 at 6:31 PM
Edited May 10, 2011 at 7:14 PM

Oleg,

I switched out my working shell code for your above post with the new source and it doesnt work anymore, it hangs on the wait.WaitOne(); line... any ideas?

EDIT: Added "exit" to the end of my command too, just as you did.
EDIT2: Just ran your exact example (with "ls -l\r\nexit" as the command) and it still hangs in the same place

May 10, 2011 at 7:29 PM

What code version did you use?

Since there were a problem with it hanging when stopping.

The example above I just copied from my test program and pasted here.

FYI, the reason it hangs in wait.WaitOne() is because Stopped event never raised.

 

Let me know when you try latest version if it works or not.

 

Thanks,

Oleg

May 10, 2011 at 7:34 PM

Looks like 8159

May 11, 2011 at 11:13 AM

I also tried the latest dll, and the code above and I don´t get any output at all.

It seems to login fine, but there's no output whatsoever and then it hangs on wait.WaitOne(). If I shouldn´t trigger a shell.stop(), what should I do to continue to the code after wait.Waitone()? I would assume it would continue automatically after the commands executed? Or am I mistaken?

Also, in my case, if I´m already logged in to my device the app trigger this error:

"An unhandled exception of type 'System.NullReferenceException' occurred in Renci.SshClient.dll. Additional information: Object reference not set to an instance of an object." and it stopps on Line 148 in your Shell.cs sourcefile.

 

//Andreas..

May 11, 2011 at 1:01 PM

I got the same error as nackros's "System.NullReferenceException" using above codes and latest source.

 

May 11, 2011 at 2:46 PM
Edited May 11, 2011 at 2:56 PM

Well it looks like Nackros, Jncodex and I are having the same error, except I just hang, no NullReferenceException.

May 11, 2011 at 4:01 PM

Could you guys specify where do you get NullReferenceException, in what line of code ? I am trying to figure out what is null.

Currently I have some challange to kill stream reader thread task. I thought by doin it async I could avoid that but it looks that you still have a problem.

Andreas, can you send me you code so I could take a look at it and how you use it in your scenario?

In theory, the example above should have execute your command and print the output to the console.

Well, what happens actually it send the text as an input to the shell, captures shell output and places it in output stream.

Also, what do you mean by "if I´m already logged in to my device"? Are you logged on using this library on different connection object or using putty or somehow else?

 

Thanks,

Oleg

May 11, 2011 at 10:02 PM
Edited May 11, 2011 at 10:03 PM

Well I dont get a NullReferenceException but after a long time I get this:

DisconnectedContex was detected

Context 0x45f788' is disconnected.  Releasing the interfaces from the current context (context 0x45f618). 
This may cause corruption or data loss. To avoid this problem, please ensure that all contexts/apartments stay
alive until the application is completely done with the RuntimeCallableWrappers that represent COM components
that live inside them.
May 11, 2011 at 10:57 PM
Edited May 11, 2011 at 10:58 PM

Well tried something different and kinda got a result similar to the others.  What Im using: 

using (var client = new SshClient(connectionInfo))
{
    client.Connect();
    var wait = new AutoResetEvent(false);
    var input = new MemoryStream(Encoding.ASCII.GetBytes(command)); // Where command = "cd scripts; script.oi arg1 arg2\r\nexit\r\n
    var output = new MemoryStream();
    var shell = client.CreateShell(input, output, output);

    shell.Stopped += delegate(object sender, EventArgs e)
    {
        Console.WriteLine("\nDisconnected...");
        //shell.Stop();
        wait.Set();
    };
    shell.Start();
    wait.WaitOne();

    output.Seek(0, SeekOrigin.Begin);
    var result = new StreamReader(output, Encoding.ASCII).ReadToEnd();
    //Console.Write(result);
}

And sure enough I got a NullReferenceException at line 148 of Shell.cs. The difference is on my run is that it actually ran the script (the script updates a DB, and the updates are there, even while I stare at the Exception). So it must occur sometime after it runs the command

May 11, 2011 at 11:59 PM

Thanks,

 

I think I found the problem.

The one with NullReferenceException and the one that she described earlier that no output was return.

 

Please check latest version and let me know if it works.

 

Thanks,

Oleg

May 12, 2011 at 10:42 AM

Hi olegkap,

Just a quick test. Found you have changed namespace from "Renci.SshClient" to "Renci.SshNet".

This is my test result:

It works using codes:

using (var ssh = new SshClient(_hostName, _userName, _password))
{
    ssh.Connect();
    var wait = new AutoResetEvent(false);
    var command = new MemoryStream();
    var writer = new StreamWriter(command, Encoding.ASCII);
    //writer.WriteLine("ls -l\r\nexit");
    writer.WriteLine("promote /projects/wwwtest/content/cn/test/index1.html\r\nexit");
    writer.Flush();
    command.Seek(0, SeekOrigin.Begin);
    var output = new MemoryStream();
    //var shell = ssh.CreateShell(Console.OpenStandardInput(), Console.OpenStandardOutput(), Console.OpenStandardError(), "xterm", 80, 24, 800, 600, "");
    var shell = ssh.CreateShell(command, output, output, "xterm", 80, 24, 800, 600, "");
    shell.Stopped += delegate(object sender1, EventArgs e1)
    {
        Console.WriteLine("\nDisconnected...");
        //shell.Stop();
        wait.Set();
    };
    shell.Start();
    wait.WaitOne();
    var reader = new StreamReader(output, Encoding.ASCII);
    output.Seek(0, SeekOrigin.Begin);
    result = reader.ReadToEnd();
}

and it does NOT work if I use the code: (will hang)

using (var ssh = new SshClient(_hostName, _userName, _password))
{
    ssh.Connect();
    var wait = new AutoResetEvent(false);
    var output = new MemoryStream();
    var cmdLine = "ls -l\r\nexit";//cmd + Environment.NewLine + "exit";
    var shell = ssh.CreateShell(Encoding.ASCII, cmdLine, output, output);

    shell.Stopped += delegate(object sender1, EventArgs e1)
    {
        Console.WriteLine("\nDisconnected...");
        //shell.Stop();
        wait.Set();
    };
    shell.Start();
    wait.WaitOne();

    output.Seek(0, SeekOrigin.Begin);
    result = new StreamReader(output, Encoding.ASCII).ReadToEnd();
    //Console.Write(result);
}
May 12, 2011 at 2:10 PM

Thanks,

 

Ok, I had a Flush operation missing so now it should be good.

Also, in you last example you should add \r\n after exit command cause if it hungs otherwise, since shell waits for the enter it seems.

 

Thanks,

Oleg

May 12, 2011 at 7:47 PM
olegkap wrote:

Thanks, 

Ok, I had a Flush operation missing so now it should be good.

Also, in you last example you should add \r\n after exit command cause if it hungs otherwise, since shell waits for the enter it seems. 

Thanks,

Oleg

The newest source (8211) seems to have fixed all the issues!  Thanks!  (Any word on tail? haha j/k)

May 12, 2011 at 7:58 PM

I just left a comment in Issue so you can take a look.

But what you can do for now is to use shell for this functionality:

using (var ssh = new SshClient(connectionInfo))
{
     ssh.Connect();
     var wait = new AutoResetEvent(false);

     var output = Console.OpenStandardOutput();

     var shell = ssh.CreateShell(Encoding.ASCII, "tail -f /var/log/auth.log\r\n", output, output);

     shell.Start();
     Thread.Sleep(1000 * 30);

     shell.Stop();
}

The only thing is you will have to parse and ignore any output produced by the shell itself :(

I tried to look into that issue again last night, and I could make everything work, except for terminating the connection in order to terminate the proccess on the server.

So I guess I can say its partially working.

 

Thanks,

Oleg

May 12, 2011 at 8:13 PM

Gotcha, thanks man... I think Ill have to hold out till the terminating issue is delt with, our Unix admins get all upitty if you leave open processess on thier server haha

May 12, 2011 at 8:18 PM

Well,

the problem is that at this point  I dont know how to terminate the command.

I tried all kind of signal and could see that they are accepted by the server but seems they do nothing :(

I cant even close a channel while its running so the only option is to close the connection, then the running process will be killed.

So I guess for now you can use one of those solutions.

I also tried to look into one of the SSH server implementions code, just to see what it does and found that it just passing it down to the system.

So here I could have another issue where some system might support some signals and some dont.

So I think I gonna leave this issue for now like that with those 2 alternative solutions.

 

Thanks,

Oleg

May 12, 2011 at 8:25 PM
Edited May 12, 2011 at 8:34 PM

Okay thanks for the breakdown.  Interesting that the cancel signals dont work... cause when I use PuTTY (which is the essence of a ssh shell),
all the typical cancel signals work (ctrl-c for me)...

EDIT: Just talked to my Unix admin and he said that the ASCII code for ctrl-c is 0x03.  Not sure what you've been trying but maybe that will work

May 12, 2011 at 8:44 PM

Also check this out in reguards to cancel signals

May 16, 2011 at 2:43 PM

Thanks for this reference,

Didnt know about those commands.

I did to send those signals in different ways but still with no luck :(:(.

It looks like once I send a command request, SSH server will ignore anything I will send again on this channel until it finishes the command.

May 18, 2011 at 9:08 AM

Just wanted to say that everything works for me know!

Using the 8341 version I can have several commands in one commandstring, and if I run "exit\r\n" it will logoff my session with my device which means I can run the same commandstring several times after each other.

So for me this issue is resolved, and I´m VERY grateful for all your help with this guys! (especially Oleg of course ;))

Thanks a million!

//Andreas..

May 18, 2011 at 9:24 AM

Just a question regarding the Shell feature.

Is there an easy way to test the server to see which methods of running commands that can be used? Since the code at the top of this discussion works perfectly against a FreeBSD server and a FortiGate firewall but not against a Watchguard firewall.

And vice versa the Shell method that works against the Watchguard doesn´t work against the FortiGate for instance.

//Andreas..

May 18, 2011 at 1:23 PM

I don't think there is a way to know it up front or programmaticly.

One way would be to analyze server version, which I dont think I expose at a moment and evn if you do know it, you would need to buil some kind of list, internally, which server supports what.

I think the best way would be, if you dont know what server your code will work against just use shell since its gonna work in both sceanrios.

 

Hope it helps,

Thanks,

Oleg

Jun 24, 2011 at 2:08 PM
Edited Jun 24, 2011 at 2:08 PM

I can´t beleive my fortune to run into a thread that actually discusses the same problem that I am experiencing myself. I am coding a small automation system for automatically configuring VLAN and firewall configurations in a small environment and ran into the exact same problem with Watchguard. In my code, I will always know what kind of device I am accessing since it´s based on a network map. I then use a base class that I have written, that I then simply extend for each type of device that I need the functions for. It works, but I already see how it might create enourmous extra coding work in the future when I extend the application to work with more types of devices.

Right now, my only reason to solve the problem in this fashion is Watchguard, since Watchguard seems to be the only device in my project right now that does not accept the SshClient.Execute function. So I have a few questions to both of you.

Have you both run into more devices that can not handle the Ssh.Execute and need a workaround with the shell?

@nackros: Any reply from the Watchguard support regarding this issue? I can relate to the idea of them not wanting to implement it, due to security reasons... but seriously... how is this less secure then using an automated shell. Crazy...

@olegkap: What´s your opinion about wrapping the shell in a similar fashion to work exactly as SshClient.Execute? I have only used the binary, and have not looked into your source code but it seems to be a simpler solution and create a more clean code.

It´s an interesting problem and I wonder how many network device manufacturers that have made the same choice as Watchguard.

// Mikael

 

Jun 24, 2011 at 2:41 PM

Hi Mikael,

In theory there is no problem  to do that but in practice it is.

The problem is with shell, or possibly different types of shells and how the produce output.

For example, when you execute a singl command, it sends command to the server and gets clean command output back.

 

In case of shell, it sends input to the shell, as if you were typing it yourself and then sends shell output back, so if the shell decides to add extra information, such a prompt text etc', then you need to parse it out and ignore it, or basiclly do something with that.

So one possible solution in your case would be, to make it easy to, is to may be inherit Shell class and make it to works specifically in your case. So for example you could wrap any parsing operations in this class, so you dont have to repeat it etc'.

If you feel you missing any public methods or need any help , feel free to let me know.

 

Another idea, since watchguard was mentioned few times already, may be you could create watchguard specific shell, lets say WatchguardShell and then I could incorporate it into the solution for everybody to use.

 

Thanks,

Oleg

Jun 25, 2011 at 7:53 AM
@Mikael:
I got an answer from Watchguard that simply stated that what I was trying was not supported. And thats that. I didn't get any explanation to why. But I will keep bugging them with this since it's the only devices that have this problem.
After some research I also discovered that their own admintool(watchguard system manager) also communicates in this way with the firewalls. It connects, logs on, runs a series of commands, logs off every time apply your actions to it. So they probably won't change this anytime soon.

And as a sidenote, I have some other similar issues with WG beeing different. They don't support SNMP to any useful degree.. Sounds familiar.. ;)

/andreas..


Apr 30, 2012 at 5:20 PM

Did you find any solution?

I'm trying to connect to a Watchguard using the SSH.NET Library, under powershell and can't send any commands.

 

Jean

May 1, 2012 at 11:21 AM

Watchguard simply do not support the SSH command type of communicating. Instead you have to wrap it into a shell and basically write a wrapper that sends the right commands, parses the responses and do the logic to see if everything is alright and performing as wanted. I´ve had some communication with Watchguard myself the last year about it, and the support technicican I talked to claimed that they see it as a security risk to allow the command type, and that it´s not on the road-map to implement it.

It´s a bit of insanity not to support the command, since it´s so much simpler, but that´s how it is. And after fiddling around with this projet a bit further, I´ve found several devices that do the same.

With simple configuration tasks, I´ve actually dropped the SSH in many cases and went on to modifying configuration files and pushed them out instead on some devices. That has proven to be a much more cost effecient way then to write a wrapper for some devices.

 

May 1, 2012 at 2:30 PM

Ok,

I will look into this.

Thanks for the update!

Jean

De : MikaelB1972 [email removed]
Envoyé : 1 mai 2012 06:21
À : jeang@sogesco.ca
Objet : Re: Hangs when executing command [sshnet:254643]

From: MikaelB1972

Watchguard simply do not support the SSH command type of communicating. Instead you have to wrap it into a shell and basically write a wrapper that sends the right commands, parses the responses and do the logic to see if everything is alright and performing as wanted. I´ve had some communication with Watchguard myself the last year about it, and the support technicican I talked to claimed that they see it as a security risk to allow the command type, and that it´s not on the road-map to implement it.

It´s a bit of insanity not to support the command, since it´s so much simpler, but that´s how it is. And after fiddling around with this projet a bit further, I´ve found several devices that do the same.

With simple configuration tasks, I´ve actually dropped the SSH in many cases and went on to modifying configuration files and pushed them out instead on some devices. That has proven to be a much more cost effecient way then to write a wrapper for some devices.

May 2, 2012 at 8:25 AM

Hi,

Just to add my reflections on this, since it´s been a year since I started this thread ;)

My mission was to simply send one command using SSH to a couple of Watchguard firewalls, since my customer needed several non-technicians do be able to perform this at certain times with just a click on a button.

But if you read through the thread I got it to work with the help of Oleg and all the other forum-members. And AFAIK my customer is still using it.

So it´s quite possible to do this, it´s just the method that has to be worked around alot. But after that it´s really not a big problem.

My project was done i VB and I can send you some of the code if you like and if it will help you. And I also think you should let Watchguard know of this problem since you´ll not be the only one, and "perhaps" they will fix this in the future.

May 2, 2012 at 1:27 PM

Hi Nackros,

Yes I would love to have a look at your code.

Thanks !

Jean

De : nackros [email removed]
Envoyé : 2 mai 2012 03:26
À : jeang@sogesco.ca
Objet : Re: Hangs when executing command [sshnet:254643]

From: nackros

Hi,

Just to add my reflections on this, since it´s been a year since I started this thread ;)

My mission was to simply send one command using SSH to a couple of Watchguard firewalls, since my customer needed several non-technicians do be able to perform this at certain times with just a click on a button.

But if you read through the thread I got it to work with the help of Oleg and all the other forum-members. And AFAIK my customer is still using it.

So it´s quite possible to do this, it´s just the method that has to be worked around alot. But after that it´s really not a big problem.

My project was done i VB and I can send you some of the code if you like and if it will help you. And I also think you should let Watchguard know of this problem since you´ll not be the only one, and "perhaps" they will fix this in the future.

Nov 13, 2012 at 12:21 AM

Anyway that the code to send commands to a watchguard be sent to me? I run another Open Source project on Codeplex called Websitepanel and we are working on some automation for this. If this can be done would save us a lot of time. My address is info@websitepanel.net. Thank you in advance for this if you can. Just one Function showing the whole process start to end would be amazing!

Omar Armenteros