<div dir="ltr">Hi,<div><br></div><div>I have recently encountered not able to talk to the server using dbclient on the cigwin </div><div><br></div><div>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.</div><div><br></div><div>I did make DROPBEAR_ENABLE_GCM_MODE 1</div><div><br></div><div>But I also encountered this error:</div><div>==================================error===================================</div><div>In file included from ../options.h:24,<br> from src/headers/tomcrypt_dropbear.h:2,<br> from src/headers/tomcrypt_custom.h:13,<br> from src/headers/tomcrypt.h:22,<br> from src/ciphers/aes/aes.c:31:<br><b>../sysoptions.h:258:3: error: #error "DROPBEAR_SVR_PASSWORD_AUTH requires `crypt()'."<br></b> 258 | #error "DROPBEAR_SVR_PASSWORD_AUTH requires `crypt()'."<br> | ^~~~~<br>make[1]: *** [Makefile:246: src/ciphers/aes/aes.o] Error 1<br>make[1]: Leaving directory '/home/jitang/Archive/dropbear-DROPBEAR_2020.80/libtomcrypt'<br>make: *** [Makefile:234: libtomcrypt/libtomcrypt.a] Error 2<br></div><div>=======================================================================</div><div><br></div><div>From verbose</div><div>user:~/Dropbear/dropbear$ ./dbclient -vv username@ip<br>TRACE (6505) 0.000000: host is:
username@ip
<br>TRACE (6505) 0.000072: loadidentityfile /home/jitang/.ssh/id_dropbear<br>TRACE (6505) 0.000635: user='root' host='10.185.100.126' port='22' bind_address='(null)' bind_port='(null)'<br>TRACE (6505) 0.000681: enter session_init<br>TRACE (6505) 0.000687: update_channel_prio<br>TRACE (6505) 0.000692: leave update_channel_prio: no socket<br>TRACE (6505) 0.000700: setnonblocking: 5<br>TRACE (6505) 0.000706: leave setnonblocking<br>TRACE (6505) 0.000711: setnonblocking: 6<br>TRACE (6505) 0.000716: leave setnonblocking<br>TRACE (6505) 0.000730: leave session_init<br>TRACE (6505) 0.000744: proxy command PID='0'<br>TRACE (6505) 0.000754: kexinitialise()<br>TRACE (6505) 0.000762: algolist add 225 'curve25519-sha256,<a href="mailto:curve25519-sha256@libssh.org">curve25519-sha256@libssh.org</a>,ecdh-sha2-nistp521,ecdh-sha2-nistp384,ecdh-sha2-nistp256,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1,<a href="mailto:kexguess2@matt.ucc.asn.au">kexguess2@matt.ucc.asn.au</a>,ext-info-c'<br>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'<br>TRACE (6505) 0.000778: algolist add 97 '<a href="mailto:chacha20-poly1305@openssh.com">chacha20-poly1305@openssh.com</a>,<a href="mailto:aes128-gcm@openssh.com">aes128-gcm@openssh.com</a>,<a href="mailto:aes256-gcm@openssh.com">aes256-gcm@openssh.com</a>,aes128-ctr,aes256-ctr'<br>TRACE (6505) 0.000784: algolist add 97 '<a href="mailto:chacha20-poly1305@openssh.com">chacha20-poly1305@openssh.com</a>,<a href="mailto:aes128-gcm@openssh.com">aes128-gcm@openssh.com</a>,<a href="mailto:aes256-gcm@openssh.com">aes256-gcm@openssh.com</a>,aes128-ctr,aes256-ctr'<br>TRACE (6505) 0.000790: algolist add 23 'hmac-sha1,hmac-sha2-256'<br>TRACE (6505) 0.000795: algolist add 23 'hmac-sha1,hmac-sha2-256'<br>TRACE (6505) 0.000800: algolist add 26 '<a href="mailto:zlib@openssh.com">zlib@openssh.com</a>,zlib,none'<br>TRACE (6505) 0.000805: algolist add 26 '<a href="mailto:zlib@openssh.com">zlib@openssh.com</a>,zlib,none'<br>TRACE (6505) 0.000816: send_msg_kexdh_init()<br>TRACE (6505) 0.002027: DATAALLOWED=0<br>TRACE (6505) 0.002033: -> KEXINIT<br>TRACE (6505) 0.002046: setnonblocking: 10<br>TRACE (6505) 0.002055: leave setnonblocking<br>TRACE (6505) 0.003231: maybe_empty_reply_queue - no data allowed<br>TRACE (6505) 0.003261: handling 10.185.100.126 port 22 socket 10<br>TRACE (6505) 0.003269: update_channel_prio<br>TRACE (6505) 0.003273: update_channel_prio: not any<br>TRACE (6505) 0.003278: Dropbear priority transitioning 10 -> 11<br>TRACE (6505) 0.003294: Couldn't set IPV6_TCLASS (Protocol not available)<br>TRACE (6505) 0.003303: leave handle_connect_fds - success<br>TRACE (6505) 0.003327: empty queue dequeing<br>TRACE (6505) 0.006992: enter ident_readln<br>TRACE (6505) 0.007017: leave ident_readln: read error<br>TRACE (6505) 0.007024: error reading remote ident: Connection reset by peer<br><br>TRACE (6505) 0.007042: Exited, cleaning up: Remote closed the connection<br>TRACE (6505) 0.007049: enter session_cleanup<br>TRACE (6505) 0.007054: enter chancleanup<br>TRACE (6505) 0.007059: leave chancleanup<br>TRACE (6505) 0.007066: enter cli_tty_cleanup<br>TRACE (6505) 0.007070: leave cli_tty_cleanup: not in raw mode<br>TRACE (6505) 0.007079: leave session_cleanup<br><br>./dbclient: Connection to
username@ip
exited: Remote closed the connection<br></div><div><br></div><div><br></div><div><br></div><div>Wonder if anyone knows this thanks.</div><div><br></div><div>Regards,</div><div>Jiye</div></div>