Running Dropbear in Cygwin

Tang Jiye oktjwill at gmail.com
Fri Oct 2 04:36:30 AWST 2020


Hi,

I have recently encountered not able to talk to the server using dbclient
on the cigwin

The verbose from the cigwin is: My server only has aes-gcm for the cipher
and does not have cbc and ctr. Also how am I able to enable aes gcm from
compiling.

I did make DROPBEAR_ENABLE_GCM_MODE 1

But I also encountered this error:
==================================error===================================
In file included from ../options.h:24,
                 from src/headers/tomcrypt_dropbear.h:2,
                 from src/headers/tomcrypt_custom.h:13,
                 from src/headers/tomcrypt.h:22,
                 from src/ciphers/aes/aes.c:31:

*../sysoptions.h:258:3: error: #error "DROPBEAR_SVR_PASSWORD_AUTH requires
`crypt()'."*  258 |  #error "DROPBEAR_SVR_PASSWORD_AUTH requires `crypt()'."
      |   ^~~~~
make[1]: *** [Makefile:246: src/ciphers/aes/aes.o] Error 1
make[1]: Leaving directory
'/home/jitang/Archive/dropbear-DROPBEAR_2020.80/libtomcrypt'
make: *** [Makefile:234: libtomcrypt/libtomcrypt.a] Error 2
=======================================================================

>From verbose
user:~/Dropbear/dropbear$ ./dbclient -vv username at ip
TRACE  (6505) 0.000000: host is: username at ip
TRACE  (6505) 0.000072: loadidentityfile /home/jitang/.ssh/id_dropbear
TRACE  (6505) 0.000635: user='root' host='10.185.100.126' port='22'
bind_address='(null)' bind_port='(null)'
TRACE  (6505) 0.000681: enter session_init
TRACE  (6505) 0.000687: update_channel_prio
TRACE  (6505) 0.000692: leave update_channel_prio: no socket
TRACE  (6505) 0.000700: setnonblocking: 5
TRACE  (6505) 0.000706: leave setnonblocking
TRACE  (6505) 0.000711: setnonblocking: 6
TRACE  (6505) 0.000716: leave setnonblocking
TRACE  (6505) 0.000730: leave session_init
TRACE  (6505) 0.000744: proxy command PID='0'
TRACE  (6505) 0.000754: kexinitialise()
TRACE  (6505) 0.000762: algolist add 225 'curve25519-sha256,
curve25519-sha256 at libssh.org
,ecdh-sha2-nistp521,ecdh-sha2-nistp384,ecdh-sha2-nistp256,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1,
kexguess2 at matt.ucc.asn.au,ext-info-c'
TRACE  (6505) 0.000772: algolist add 100
'ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,rsa-sha2-256,ssh-rsa,ssh-dss'
TRACE  (6505) 0.000778: algolist add 97 'chacha20-poly1305 at openssh.com,
aes128-gcm at openssh.com,aes256-gcm at openssh.com,aes128-ctr,aes256-ctr'
TRACE  (6505) 0.000784: algolist add 97 'chacha20-poly1305 at openssh.com,
aes128-gcm at openssh.com,aes256-gcm at openssh.com,aes128-ctr,aes256-ctr'
TRACE  (6505) 0.000790: algolist add 23 'hmac-sha1,hmac-sha2-256'
TRACE  (6505) 0.000795: algolist add 23 'hmac-sha1,hmac-sha2-256'
TRACE  (6505) 0.000800: algolist add 26 'zlib at openssh.com,zlib,none'
TRACE  (6505) 0.000805: algolist add 26 'zlib at openssh.com,zlib,none'
TRACE  (6505) 0.000816: send_msg_kexdh_init()
TRACE  (6505) 0.002027: DATAALLOWED=0
TRACE  (6505) 0.002033: -> KEXINIT
TRACE  (6505) 0.002046: setnonblocking: 10
TRACE  (6505) 0.002055: leave setnonblocking
TRACE  (6505) 0.003231: maybe_empty_reply_queue - no data allowed
TRACE  (6505) 0.003261: handling 10.185.100.126 port 22 socket 10
TRACE  (6505) 0.003269: update_channel_prio
TRACE  (6505) 0.003273: update_channel_prio: not any
TRACE  (6505) 0.003278: Dropbear priority transitioning 10 -> 11
TRACE  (6505) 0.003294: Couldn't set IPV6_TCLASS (Protocol not available)
TRACE  (6505) 0.003303: leave handle_connect_fds - success
TRACE  (6505) 0.003327: empty queue dequeing
TRACE  (6505) 0.006992: enter ident_readln
TRACE  (6505) 0.007017: leave ident_readln: read error
TRACE  (6505) 0.007024: error reading remote ident: Connection reset by peer

TRACE  (6505) 0.007042: Exited, cleaning up: Remote closed the connection
TRACE  (6505) 0.007049: enter session_cleanup
TRACE  (6505) 0.007054: enter chancleanup
TRACE  (6505) 0.007059: leave chancleanup
TRACE  (6505) 0.007066: enter cli_tty_cleanup
TRACE  (6505) 0.007070: leave cli_tty_cleanup: not in raw mode
TRACE  (6505) 0.007079: leave session_cleanup

./dbclient: Connection to username at ip exited: Remote closed the connection



Wonder if anyone knows this thanks.

Regards,
Jiye
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ucc.gu.uwa.edu.au/pipermail/dropbear/attachments/20201001/af7dea2e/attachment.htm>


More information about the Dropbear mailing list