=== Test case: ssh_protocol_SUITE:packet_length_too_short/1 (click for source code) === Config value: [{watchdog,<0.39121.0>}, {server,{<0.38610.0>,{0,0,0,0},42507}}, {user_passwords,[{"user1","pwd1"}]}, {tc_logfile,"/buildroot/otp/lib/ssh/make_test_dir/ct_logs/ct_run.test_server@fa8627b01072.2025-02-19_16.30.11/make_test_dir.ssh_test.logs/run.2025-02-19_16.30.12/ssh_protocol_suite.packet_length_too_short.html"}, {tc_group_properties,[{name,packet_size_error}, {suite,ssh_protocol_SUITE}]}, {tc_group_path,[]}, {data_dir,"/buildroot/otp/lib/ssh/make_test_dir/ssh_test/ssh_protocol_SUITE_data/"}, {priv_dir,"/buildroot/otp/lib/ssh/make_test_dir/ct_logs/ct_run.test_server@fa8627b01072.2025-02-19_16.30.11/make_test_dir.ssh_test.logs/run.2025-02-19_16.30.12/log_private/"}, {nodenames,[]}] === Current directory is "/buildroot/otp/lib/ssh/make_test_dir/ct_logs/ct_run.test_server@fa8627b01072.2025-02-19_16.30.11" === Started at 2025-02-19 16:36:29
*** User 2025-02-19 16:36:29.590 ***🔗 Server {0,0,0,0}:42507 <0.38610.0> is ok at line 216
*** User 2025-02-19 16:36:29.605 ***🔗 -- client {send,{special,{ssh_msg_service_request,"ssh-userauth"}, #Fun}} 1 -------- Send #ssh_msg_service_request{name = "ssh-userauth" } 2 -------- client seq num: send 0->1
*** User 2025-02-19 16:36:29.605 ***🔗 -- client {send,{ssh_msg_service_request,"ssh-userauth"}} 1 -------- Send #ssh_msg_service_request{name = "ssh-userauth" } 2 -------- client seq num: send 1->2
*** User 2025-02-19 16:36:29.645 ***🔗 -- client {match,{'or',[{ssh_msg_disconnect,'_','_','_'}, tcp_closed, {tcp_error,econnaborted}]}, receive_msg} 1 -------- Recv #ssh_msg_disconnect{code = 2, description = "Protocol error", language = <<>> } 2 -------- Matches! No new bindings.3 -------- client seq num: recv 0->1
*** System report during ssh_protocol_SUITE:packet_length_too_short/1 in packet_size_error 2025-02-19 16:36:29.645 ***🔗 =INFO REPORT==== 19-Feb-2025::16:36:29.645356 === Erlang SSH server version: 5.2.6 (OpenSSL 3.0.2 15 Mar 2022). Address: 127.0.0.1:42507 Peer client version: "SSH-2.0-ErlangTestLib" Peer address: 127.0.0.1:54948 Disconnects with code = 2 [RFC4253 11.1]: Protocol error State = {ext_info,server,init} Module = ssh_connection_handler, Line = 1218. Details: Bad packet: bad mac
*** User 2025-02-19 16:36:29.654 ***🔗 Server {0,0,0,0}:42507 <0.38610.0> is ok at line 230
=== Ended at 2025-02-19 16:36:29 === successfully completed test case === === Returned value: {ok, {s,#Port<0.8256>,undefined, [print_ops,print_seqnums,print_messages], 5000,true, {ssh,client, {"127.0.0.1",{{127,0,0,1},42507}}, {{127,0,0,1},54948}, {2,0}, {2,0}, "SSH-2.0-ErlangTestLib","SSH-2.0-Erlang/5.2.6", <<20,121,142,60,15,188,149,208,81,109,218,170,27,206, 153,211,134,0,0,0,58,100,105,102,102,105,101,45,104, 101,108,108,109,97,110,45,103,114,111,117,112,49,52, 45,115,104,97,50,53,54,44,107,101,120,45,115,116,114, 105,99,116,45,99,45,118,48,48,64,111,112,101,110,115, 115,104,46,99,111,109,0,0,0,107,115,115,104,45,101, 100,50,53,53,49,57,44,115,115,104,45,101,100,52,52,56, 44,101,99,100,115,97,45,115,104,97,50,45,110,105,115, 116,112,53,50,49,44,101,99,100,115,97,45,115,104,97, 50,45,110,105,115,116,112,51,56,52,44,101,99,100,115, 97,45,115,104,97,50,45,110,105,115,116,112,50,53,54, 44,114,115,97,45,115,104,97,50,45,53,49,50,44,114,115, 97,45,115,104,97,50,45,50,53,54,0,0,0,52,97,101,115, 50,53,54,45,99,116,114,44,97,101,115,49,57,50,45,99, 116,114,44,97,101,115,49,50,56,45,99,116,114,44,97, 101,115,49,50,56,45,99,98,99,44,51,100,101,115,45,99, 98,99,0,0,0,52,97,101,115,50,53,54,45,99,116,114,44, 97,101,115,49,57,50,45,99,116,114,44,97,101,115,49,50, 56,45,99,116,114,44,97,101,115,49,50,56,45,99,98,99, 44,51,100,101,115,45,99,98,99,0,0,0,123,104,109,97,99, 45,115,104,97,50,45,53,49,50,45,101,116,109,64,111, 112,101,110,115,115,104,46,99,111,109,44,104,109,97, 99,45,115,104,97,50,45,50,53,54,45,101,116,109,64,111, 112,101,110,115,115,104,46,99,111,109,44,104,109,97, 99,45,115,104,97,50,45,53,49,50,44,104,109,97,99,45, 115,104,97,50,45,50,53,54,44,104,109,97,99,45,115,104, 97,49,45,101,116,109,64,111,112,101,110,115,115,104, 46,99,111,109,44,104,109,97,99,45,115,104,97,49,0,0,0, 123,104,109,97,99,45,115,104,97,50,45,53,49,50,45,101, 116,109,64,111,112,101,110,115,115,104,46,99,111,109, 44,104,109,97,99,45,115,104,97,50,45,50,53,54,45,101, 116,109,64,111,112,101,110,115,115,104,46,99,111,109, 44,104,109,97,99,45,115,104,97,50,45,53,49,50,44,104, 109,97,99,45,115,104,97,50,45,50,53,54,44,104,109,97, 99,45,115,104,97,49,45,101,116,109,64,111,112,101,110, 115,115,104,46,99,111,109,44,104,109,97,99,45,115,104, 97,49,0,0,0,26,110,111,110,101,44,122,108,105,98,64, 111,112,101,110,115,115,104,46,99,111,109,44,122,108, 105,98,0,0,0,26,110,111,110,101,44,122,108,105,98,64, 111,112,101,110,115,115,104,46,99,111,109,44,122,108, 105,98,0,0,0,0,0,0,0,0,0,0,0,0,0>>, <<20,5,81,147,156,158,172,55,118,31,34,111,182,55,210, 144,207,0,0,1,30,99,117,114,118,101,50,53,53,49,57,45, 115,104,97,50,53,54,44,99,117,114,118,101,50,53,53,49, 57,45,115,104,97,50,53,54,64,108,105,98,115,115,104, 46,111,114,103,44,99,117,114,118,101,52,52,56,45,115, 104,97,53,49,50,44,101,99,100,104,45,115,104,97,50,45, 110,105,115,116,112,53,50,49,44,101,99,100,104,45,115, 104,97,50,45,110,105,115,116,112,51,56,52,44,101,99, 100,104,45,115,104,97,50,45,110,105,115,116,112,50,53, 54,44,100,105,102,102,105,101,45,104,101,108,108,109, 97,110,45,103,114,111,117,112,45,101,120,99,104,97, 110,103,101,45,115,104,97,50,53,54,44,100,105,102,102, 105,101,45,104,101,108,108,109,97,110,45,103,114,111, 117,112,49,54,45,115,104,97,53,49,50,44,100,105,102, 102,105,101,45,104,101,108,108,109,97,110,45,103,114, 111,117,112,49,56,45,115,104,97,53,49,50,44,100,105, 102,102,105,101,45,104,101,108,108,109,97,110,45,103, 114,111,117,112,49,52,45,115,104,97,50,53,54,44,101, 120,116,45,105,110,102,111,45,115,44,107,101,120,45, 115,116,114,105,99,116,45,115,45,118,48,48,64,111,112, 101,110,115,115,104,46,99,111,109,0,0,0,67,115,115, 104,45,101,100,50,53,53,49,57,44,115,115,104,45,101, 100,52,52,56,44,101,99,100,115,97,45,115,104,97,50,45, 110,105,115,116,112,50,53,54,44,114,115,97,45,115,104, 97,50,45,53,49,50,44,114,115,97,45,115,104,97,50,45, 50,53,54,0,0,0,108,97,101,115,50,53,54,45,103,99,109, 64,111,112,101,110,115,115,104,46,99,111,109,44,97, 101,115,50,53,54,45,99,116,114,44,97,101,115,49,57,50, 45,99,116,114,44,97,101,115,49,50,56,45,103,99,109,64, 111,112,101,110,115,115,104,46,99,111,109,44,97,101, 115,49,50,56,45,99,116,114,44,99,104,97,99,104,97,50, 48,45,112,111,108,121,49,51,48,53,64,111,112,101,110, 115,115,104,46,99,111,109,0,0,0,108,97,101,115,50,53, 54,45,103,99,109,64,111,112,101,110,115,115,104,46,99, 111,109,44,97,101,115,50,53,54,45,99,116,114,44,97, 101,115,49,57,50,45,99,116,114,44,97,101,115,49,50,56, 45,103,99,109,64,111,112,101,110,115,115,104,46,99, 111,109,44,97,101,115,49,50,56,45,99,116,114,44,99, 104,97,99,104,97,50,48,45,112,111,108,121,49,51,48,53, 64,111,112,101,110,115,115,104,46,99,111,109,0,0,0, 123,104,109,97,99,45,115,104,97,50,45,53,49,50,45,101, 116,109,64,111,112,101,110,115,115,104,46,99,111,109, 44,104,109,97,99,45,115,104,97,50,45,50,53,54,45,101, 116,109,64,111,112,101,110,115,115,104,46,99,111,109, 44,104,109,97,99,45,115,104,97,50,45,53,49,50,44,104, 109,97,99,45,115,104,97,50,45,50,53,54,44,104,109,97, 99,45,115,104,97,49,45,101,116,109,64,111,112,101,110, 115,115,104,46,99,111,109,44,104,109,97,99,45,115,104, 97,49,0,0,0,123,104,109,97,99,45,115,104,97,50,45,53, 49,50,45,101,116,109,64,111,112,101,110,115,115,104, 46,99,111,109,44,104,109,97,99,45,115,104,97,50,45,50, 53,54,45,101,116,109,64,111,112,101,110,115,115,104, 46,99,111,109,44,104,109,97,99,45,115,104,97,50,45,53, 49,50,44,104,109,97,99,45,115,104,97,50,45,50,53,54, 44,104,109,97,99,45,115,104,97,49,45,101,116,109,64, 111,112,101,110,115,115,104,46,99,111,109,44,104,109, 97,99,45,115,104,97,49,0,0,0,26,110,111,110,101,44, 122,108,105,98,64,111,112,101,110,115,115,104,46,99, 111,109,44,122,108,105,98,0,0,0,26,110,111,110,101,44, 122,108,105,98,64,111,112,101,110,115,115,104,46,99, 111,109,44,122,108,105,98,0,0,0,0,0,0,0,0,0,0,0,0,0>>, true,false,true, {alg,'diffie-hellman-group14-sha256','ssh-ed25519', 'hmac-sha2-512-etm@openssh.com', 'hmac-sha2-512-etm@openssh.com','aes256-ctr', 'aes256-ctr',none,none,none,none,true,false,true}, 'hmac-sha2-512-etm@openssh.com', <<228,93,106,40,144,21,180,93,73,171,50,56,218,181,167, 117,83,149,150,82,200,183,200,225,195,78,200,161,245, 163,180,93,172,244,54,226,157,132,19,54,217,46,48,22, 56,17,23,109,169,194,161,87,221,231,195,67,224,31,233, 75,3,10,66,29>>, 64,'hmac-sha2-512-etm@openssh.com', <<236,99,30,47,83,5,222,152,1,53,204,229,8,45,29,249,96, 160,103,114,76,199,80,214,226,205,142,34,110,85,255, 170,22,232,107,155,107,58,31,67,76,61,166,154,239,55, 24,168,55,62,126,231,29,69,214,119,114,2,240,55,58, 157,75,249>>, 64,'aes256-ctr',aes_256_ctr,undefined,16, #Ref<0.3464449477.2635988995.71386>,'aes256-ctr', aes_256_ctr,undefined,16, #Ref<0.3464449477.2635988995.71388>,none,undefined, none,undefined,none,none,true,infinity, <<0,0,1,0,6,30,150,226,189,115,145,187,49,34,72,7,246, 181,234,17,100,99,254,133,227,173,193,226,160,24,134, 160,222,64,208,22,79,237,55,195,158,192,18,154,182, 165,208,29,76,250,89,19,6,130,122,23,152,211,88,4,141, 205,27,102,186,20,10,54,204,79,100,138,230,49,176,8, 59,249,13,163,79,200,5,74,81,111,239,4,136,188,82,158, 0,56,45,221,65,10,152,4,140,103,50,85,13,155,114,115, 146,134,187,202,5,121,67,155,157,197,21,62,131,48,79, 30,137,222,110,203,17,101,213,29,178,243,68,47,71,118, 254,81,180,196,140,105,236,96,152,145,244,244,154,115, 173,50,222,189,96,243,202,244,230,147,0,183,106,38,94, 184,102,238,49,27,69,7,87,214,112,94,59,139,143,114, 214,227,90,184,111,214,3,82,164,41,166,164,62,245,255, 114,15,126,183,81,143,226,21,118,180,137,90,55,137,35, 57,220,21,112,72,58,181,219,152,239,116,54,181,148,41, 34,47,242,72,114,142,70,9,183,250,176,99,6,251,154, 138,118,136,78,241,152,209,36,134,0,6,88,187,199,177, 222,25,69>>, <<172,88,130,53,58,126,104,64,153,191,223,48,206,35,46, 16,49,53,30,104,208,143,47,231,193,83,136,30,105,253, 129,208>>, <<172,88,130,53,58,126,104,64,153,191,223,48,206,35,46, 16,49,53,30,104,208,143,47,231,193,83,136,30,105,253, 129,208>>, #{auth_methods => "publickey,keyboard-interactive,password", preferred_algorithms => [{kex,['diffie-hellman-group14-sha256']}, {public_key, ['ssh-ed25519','ssh-ed448','ecdsa-sha2-nistp521', 'ecdsa-sha2-nistp384','ecdsa-sha2-nistp256', 'rsa-sha2-512','rsa-sha2-256']}, {cipher, [{client2server, ['aes256-ctr','aes192-ctr','aes128-ctr', 'aes128-cbc','3des-cbc']}, {server2client, ['aes256-ctr','aes192-ctr','aes128-ctr', 'aes128-cbc','3des-cbc']}]}, {mac, [{client2server, ['hmac-sha2-512-etm@openssh.com', 'hmac-sha2-256-etm@openssh.com', 'hmac-sha2-512','hmac-sha2-256', 'hmac-sha1-etm@openssh.com','hmac-sha1']}, {server2client, ['hmac-sha2-512-etm@openssh.com', 'hmac-sha2-256-etm@openssh.com', 'hmac-sha2-512','hmac-sha2-256', 'hmac-sha1-etm@openssh.com','hmac-sha1']}]}, {compression, [{client2server,[none,'zlib@openssh.com',zlib]}, {server2client,[none,'zlib@openssh.com',zlib]}]}], key_cb => {ssh_file,[]}, keyboard_interact_fun => undefined, connect_timeout => infinity, id_string => "ErlangTestLib",tstflg => [], modify_algorithms => undefined,profile => default, max_log_item_len => 500,quiet_mode => false, rekey_limit => {3600000,1024000000}, dsa_pass_phrase => undefined, transport => {tcp,gen_tcp,tcp_closed}, dh_gex_limits => {1024,6144,8192}, vsn => {2,0}, socket_options => [],password => undefined, user_interaction => false,send_ext_info => true, user => "otptest",ecdsa_pass_phrase => undefined, rsa_pass_phrase => undefined, unexpectedfun => #Fun<ssh_options.47.132367065>, pref_public_key_algs => ['ssh-ed25519','ssh-ed448','ecdsa-sha2-nistp521', 'ecdsa-sha2-nistp384','ecdsa-sha2-nistp256', 'rsa-sha2-512','rsa-sha2-256'], max_random_length_padding => 15, recv_ext_info => false, user_dir => "/buildroot/otp/lib/ssh/make_test_dir/ct_logs/ct_run.test_server@fa8627b01072.2025-02-19_16.30.11/make_test_dir.ssh_test.logs/run.2025-02-19_16.30.12/log_private/", key_cb_options => [{silently_accept_hosts,true}, {user_dir, "/buildroot/otp/lib/ssh/make_test_dir/ct_logs/ct_run.test_server@fa8627b01072.2025-02-19_16.30.11/make_test_dir.ssh_test.logs/run.2025-02-19_16.30.12/log_private/"}, {recv_ext_info,false}, {user_interaction,false}, {vsn,{2,0}}, {id_string,"ErlangTestLib"}, {preferred_algorithms, [{kex,['diffie-hellman-group14-sha256']}, {cipher, [{client2server, ['aes256-ctr','aes192-ctr','aes128-ctr', 'aes128-cbc','3des-cbc']}, {server2client, ['aes256-ctr','aes192-ctr','aes128-ctr', 'aes128-cbc','3des-cbc']}]}]}], save_accepted_host => true,user_dir_fun => undefined, silently_accept_hosts => true, internal_options => #{host => "127.0.0.1",io_cb => ssh_no_io}, ssh_msg_debug_fun => #Fun<ssh_options.49.132367065>, idle_time => infinity, disconnectfun => #Fun<ssh_options.45.132367065>}, 2,1, {{92294058046513796202379280246176173661830985940810512330478082188542338432275089507351932913459694762027788812728445893595111547602381035293959673097363671702465066073602432702691370490433237471806059593835207000141294947901657363382931782712613350866310444587833646137007058359470478701470687294432122368661, 10849791245470516191279716285193665952692541578315093165442643429512921844620597531819572967050606872744982882249880528648069051536852700043308167708578062373103072328007064376991815522191020254437096230115291542579296812954857137562589068588024384629874404221758774374722512972932061343707111470061505896659273220816230951760996399942911854366815115237499445704726683017110975744990035832340952396766980966530983049584780990044500984763818650725370807016005447600941411803914293625604586223409757267260613640163745984522486982783875705160288948736004267430842891588929602030541058245833915816582246997168223972154661}, {2, 32317006071311007300338913926423828248817941241140239112842009751400741706634354222619689417363569347117901737909704191754605873209195028853758986185622153212175412514901774520270235796078236248884246189477587641105928646099411723245426622522193230540919037680524235519125679715870117001058055877651038861847280257976054903569732561526167081339361799541336476559160368317896729073178384589680639671900977202194168647225871031411336429319536193471636533209717077448227988588565369208645296636077250268955505928362751121174096972998068410554359584866583291642136218231078990999448652468262416972035911852507045361090559}}, undefined,15,undefined,undefined,false,undefined, "publickey,keyboard-interactive,password", ['ssh-ed25519','ssh-ed448','ecdsa-sha2-nistp256', 'rsa-sha2-512','rsa-sha2-256'], 0,undefined, ["ssh-ed25519","ssh-ed448","ecdsa-sha2-nistp521", "ecdsa-sha2-nistp384","ecdsa-sha2-nistp256", "rsa-sha2-512","rsa-sha2-256"], undefined,false}, {{ssh_msg_kexinit, <<121,142,60,15,188,149,208,81,109,218,170,27,206,153, 211,134>>, ["diffie-hellman-group14-sha256", "kex-strict-c-v00@openssh.com"], ["ssh-ed25519","ssh-ed448","ecdsa-sha2-nistp521", "ecdsa-sha2-nistp384","ecdsa-sha2-nistp256", "rsa-sha2-512","rsa-sha2-256"], ["aes256-ctr","aes192-ctr","aes128-ctr","aes128-cbc", "3des-cbc"], ["aes256-ctr","aes192-ctr","aes128-ctr","aes128-cbc", "3des-cbc"], ["hmac-sha2-512-etm@openssh.com", "hmac-sha2-256-etm@openssh.com","hmac-sha2-512", "hmac-sha2-256","hmac-sha1-etm@openssh.com", "hmac-sha1"], ["hmac-sha2-512-etm@openssh.com", "hmac-sha2-256-etm@openssh.com","hmac-sha2-512", "hmac-sha2-256","hmac-sha1-etm@openssh.com", "hmac-sha1"], ["none","zlib@openssh.com","zlib"], ["none","zlib@openssh.com","zlib"], [],[],false,0}, {ssh_msg_kexinit, 7069709947377818125081064340437766351, ["curve25519-sha256","curve25519-sha256@libssh.org", "curve448-sha512","ecdh-sha2-nistp521", "ecdh-sha2-nistp384","ecdh-sha2-nistp256", "diffie-hellman-group-exchange-sha256", "diffie-hellman-group16-sha512", "diffie-hellman-group18-sha512", "diffie-hellman-group14-sha256","ext-info-s", "kex-strict-s-v00@openssh.com"], ["ssh-ed25519","ssh-ed448","ecdsa-sha2-nistp256", "rsa-sha2-512","rsa-sha2-256"], ["aes256-gcm@openssh.com","aes256-ctr","aes192-ctr", "aes128-gcm@openssh.com","aes128-ctr", "chacha20-poly1305@openssh.com"], ["aes256-gcm@openssh.com","aes256-ctr","aes192-ctr", "aes128-gcm@openssh.com","aes128-ctr", "chacha20-poly1305@openssh.com"], ["hmac-sha2-512-etm@openssh.com", "hmac-sha2-256-etm@openssh.com","hmac-sha2-512", "hmac-sha2-256","hmac-sha1-etm@openssh.com", "hmac-sha1"], ["hmac-sha2-512-etm@openssh.com", "hmac-sha2-256-etm@openssh.com","hmac-sha2-512", "hmac-sha2-256","hmac-sha1-etm@openssh.com", "hmac-sha1"], ["none","zlib@openssh.com","zlib"], ["none","zlib@openssh.com","zlib"], [],[],false,0}}, {alg,'diffie-hellman-group14-sha256','ssh-ed25519', 'hmac-sha2-512-etm@openssh.com', 'hmac-sha2-512-etm@openssh.com','aes256-ctr', 'aes256-ctr',none,none,none,none,true,false,true}, {dict,0,16,16,8,80,48, {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]}, {{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]}}}, [], [{"~p seq num: recv ~p->~p~n",[client,0,1]}, {"Matches! No new bindings.",[]}, {"Recv~n~s~n", [[[[35,"ssh_msg_disconnect",123], ["code",32,61,32], ["2"], 44,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32, 32,32,32,32,32, ["description",32,61,32], ["\"Protocol error\""], 44,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32, 32,32,32,32,32, ["language",32,61,32], ["<<>>"]], "\n ","}"]]}, {"-- ~p ~p~n", [client, {match, {'or', [{ssh_msg_disconnect,'_','_','_'}, tcp_closed, {tcp_error,econnaborted}]}, receive_msg}]}], {ssh_msg_disconnect,2,"Protocol error",<<>>}, <<>>,<<>>,<<>>,undefined}}
Test run history | Top level test index | Latest test result