Question
多田 真遵 · Aug 23

:ERROR #7510: SSH Error '-18': SSH Error [80101012]: Username/PublicKey combination invalid [80101012] at Session.cpp:458,0

Hi,

I try SFTP connect by ObjectScript.
But occurred this error. Can't connect by SFTP key-pair authentication.

:ERROR #7510: SSH Error '-18': SSH Error [80101012]: Username/PublicKey combination invalid [80101012] at Session.cpp:458,0

Key pair was generate this way.
ssh-keygen -m pem -f ~/.ssh/id_rsa
"id_rsa" and "id_rsa.pub" is generated.
Passphrase is empty.

sftp command is connect successful.
ex.
sftp -i .ssh/id_rsa sftpuser@localhost

And other SFTP client is connect successful too.
ex. Fillezilla.

And password authentication is successful too.

ObjectScript code is this.

ClassMethod SFTPDir() As %Status
{
    set ssh = ##class(%Net.SSH.Session).%New()
    Do ssh.SetTraceMask(511,"/tmp/ssh.log")
    Set sc = ssh.Connect("localhost")
    Write:$$$ISERR(sc) "Connect:", $System.Status.GetErrorText(sc),!
    Set sc = ssh.AuthenticateWithKeyPair("sftpuser","/path/to/id_rsa.pub","/path/to/id_rsa","")
    Set sc = ssh.AuthenticateWithUsername("sftpuser","/path/to/id_rsa.pub","/path/to/p_id_rsa","") 
    //Set sc = ssh.AuthenticateWithUsername("sftpuser","password") //success
    //Set sc = ssh.AuthenticateWithKeyPair("sftpuser","password") //success 
    Write:$$$ISERR(sc) "AuthenticateWithKeyPair:", $System.Status.GetErrorText(sc),!
    Set sc = ssh.OpenSFTP(.sftp)
    Write:$$$ISERR(sc) "OpenSFTP:", $System.Status.GetErrorText(sc),!

    Set sc = sftp.Dir(".",.files)
    Write:$$$ISERR(sc) "Dir:", $System.Status.GetErrorText(sc),!
    set i = $ORDER(files(""))
    while i '= "" {
        write $listget(files(i),1),!
        set i = $ORDER(files(i))
    }
    
    quit $$$OK
}

enviroment
IRIS_Community-2021.2.0.651.0-lnxubuntu2004x64

Thank you for help.

Product version: IRIS 2021.2
0
0 312
Discussion (8)1
Log in or sign up to continue

I think you got the methods reversed. To connect using the key pair you should use this method:

set sc = ssh.AuthenticateWithKeyPair("sftpuser","/path/to/id_rsa.pub","/path/to/p_id_rsa","")

I have tested this and it works

Is the private key file "id_rsa" or "p_id_rsa"?

Are the key files in "/path/to/" directory?

Thanks for the reply.
Sorry for the misunderstanding.
The sample program has been modified.

The same error occurs in the modified sample program.

What do you see in 

/tmp/ssh.log

?

The following logs were output.

[libssh2] 0.108275 Transport: session_startup for socket 4
[libssh2] 0.108319 Transport: Sending Banner: SSH-2.0-libssh2_1.9.0
[libssh2] 0.121082 Transport: Received Banner: SSH-2.0-OpenSSH_8.9p1 Ubuntu-3
[libssh2] 0.121214 Key Ex: Sent KEX: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,curve25519-sha256,curve25519-sha256@libssh.org,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
[libssh2] 0.121266 Key Ex: Sent HOSTKEY: ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519,ssh-rsa,ssh-dss
[libssh2] 0.121286 Key Ex: Sent CRYPT_CS: aes128-ctr,aes192-ctr,aes256-ctr,aes256-cbc,rijndael-cbc@lysator.liu.se,aes192-cbc,aes128-cbc,blowfish-cbc,arcfour128,arcfour,cast128-cbc,3des-cbc
[libssh2] 0.121293 Key Ex: Sent CRYPT_SC: aes128-ctr,aes192-ctr,aes256-ctr,aes256-cbc,rijndael-cbc@lysator.liu.se,aes192-cbc,aes128-cbc,blowfish-cbc,arcfour128,arcfour,cast128-cbc,3des-cbc
[libssh2] 0.121300 Key Ex: Sent MAC_CS: hmac-sha2-256,hmac-sha2-512,hmac-sha1,hmac-sha1-96,hmac-md5,hmac-md5-96,hmac-ripemd160,hmac-ripemd160@openssh.com
[libssh2] 0.121359 Key Ex: Sent MAC_SC: hmac-sha2-256,hmac-sha2-512,hmac-sha1,hmac-sha1-96,hmac-md5,hmac-md5-96,hmac-ripemd160,hmac-ripemd160@openssh.com
[libssh2] 0.121368 Key Ex: Sent COMP_CS: none
[libssh2] 0.121376 Key Ex: Sent COMP_SC: none
[libssh2] 0.121383 Key Ex: Sent LANG_CS:
[libssh2] 0.121390 Key Ex: Sent LANG_SC:
=> libssh2_transport_write plain (905 bytes)
0000: 14 89 0E 9A 69 74 65 23  27 D8 7D DB 77 2F 11 8A : ....ite#'.}.w/..
0010: 60 00 00 00 E6 65 63 64  68 2D 73 68 61 32 2D 6E : `....ecdh-sha2-n
0020: 69 73 74 70 32 35 36 2C  65 63 64 68 2D 73 68 61 : istp256,ecdh-sha
0030: 32 2D 6E 69 73 74 70 33  38 34 2C 65 63 64 68 2D : 2-nistp384,ecdh-
0040: 73 68 61 32 2D 6E 69 73  74 70 35 32 31 2C 63 75 : sha2-nistp521,cu
0050: 72 76 65 32 35 35 31 39  2D 73 68 61 32 35 36 2C : rve25519-sha256,
0060: 63 75 72 76 65 32 35 35  31 39 2D 73 68 61 32 35 : curve25519-sha25
0070: 36 40 6C 69 62 73 73 68  2E 6F 72 67 2C 64 69 66 : 6@libssh.org,dif
0080: 66 69 65 2D 68 65 6C 6C  6D 61 6E 2D 67 72 6F 75 : fie-hellman-grou
0090: 70 2D 65 78 63 68 61 6E  67 65 2D 73 68 61 32 35 : p-exchange-sha25
00a0: 36 2C 64 69 66 66 69 65  2D 68 65 6C 6C 6D 61 6E : 6,diffie-hellman
00b0: 2D 67 72 6F 75 70 2D 65  78 63 68 61 6E 67 65 2D : -group-exchange-
00c0: 73 68 61 31 2C 64 69 66  66 69 65 2D 68 65 6C 6C : sha1,diffie-hell
00d0: 6D 61 6E 2D 67 72 6F 75  70 31 34 2D 73 68 61 31 : man-group14-sha1
00e0: 2C 64 69 66 66 69 65 2D  68 65 6C 6C 6D 61 6E 2D : ,diffie-hellman-
00f0: 67 72 6F 75 70 31 2D 73  68 61 31 00 00 00 57 65 : group1-sha1...We
0100: 63 64 73 61 2D 73 68 61  32 2D 6E 69 73 74 70 32 : cdsa-sha2-nistp2
0110: 35 36 2C 65 63 64 73 61  2D 73 68 61 32 2D 6E 69 : 56,ecdsa-sha2-ni
0120: 73 74 70 33 38 34 2C 65  63 64 73 61 2D 73 68 61 : stp384,ecdsa-sha
0130: 32 2D 6E 69 73 74 70 35  32 31 2C 73 73 68 2D 65 : 2-nistp521,ssh-e
0140: 64 32 35 35 31 39 2C 73  73 68 2D 72 73 61 2C 73 : d25519,ssh-rsa,s
0150: 73 68 2D 64 73 73 00 00  00 92 61 65 73 31 32 38 : sh-dss....aes128
0160: 2D 63 74 72 2C 61 65 73  31 39 32 2D 63 74 72 2C : -ctr,aes192-ctr,
0170: 61 65 73 32 35 36 2D 63  74 72 2C 61 65 73 32 35 : aes256-ctr,aes25
0180: 36 2D 63 62 63 2C 72 69  6A 6E 64 61 65 6C 2D 63 : 6-cbc,rijndael-c
0190: 62 63 40 6C 79 73 61 74  6F 72 2E 6C 69 75 2E 73 : bc@lysator.liu.s
01a0: 65 2C 61 65 73 31 39 32  2D 63 62 63 2C 61 65 73 : e,aes192-cbc,aes
01b0: 31 32 38 2D 63 62 63 2C  62 6C 6F 77 66 69 73 68 : 128-cbc,blowfish
01c0: 2D 63 62 63 2C 61 72 63  66 6F 75 72 31 32 38 2C : -cbc,arcfour128,
01d0: 61 72 63 66 6F 75 72 2C  63 61 73 74 31 32 38 2D : arcfour,cast128-
01e0: 63 62 63 2C 33 64 65 73  2D 63 62 63 00 00 00 92 : cbc,3des-cbc....
01f0: 61 65 73 31 32 38 2D 63  74 72 2C 61 65 73 31 39 : aes128-ctr,aes19
0200: 32 2D 63 74 72 2C 61 65  73 32 35 36 2D 63 74 72 : 2-ctr,aes256-ctr
0210: 2C 61 65 73 32 35 36 2D  63 62 63 2C 72 69 6A 6E : ,aes256-cbc,rijn
0220: 64 61 65 6C 2D 63 62 63  40 6C 79 73 61 74 6F 72 : dael-cbc@lysator
0230: 2E 6C 69 75 2E 73 65 2C  61 65 73 31 39 32 2D 63 : .liu.se,aes192-c
0240: 62 63 2C 61 65 73 31 32  38 2D 63 62 63 2C 62 6C : bc,aes128-cbc,bl
0250: 6F 77 66 69 73 68 2D 63  62 63 2C 61 72 63 66 6F : owfish-cbc,arcfo
0260: 75 72 31 32 38 2C 61 72  63 66 6F 75 72 2C 63 61 : ur128,arcfour,ca
0270: 73 74 31 32 38 2D 63 62  63 2C 33 64 65 73 2D 63 : st128-cbc,3des-c
0280: 62 63 00 00 00 71 68 6D  61 63 2D 73 68 61 32 2D : bc...qhmac-sha2-
0290: 32 35 36 2C 68 6D 61 63  2D 73 68 61 32 2D 35 31 : 256,hmac-sha2-51
02a0: 32 2C 68 6D 61 63 2D 73  68 61 31 2C 68 6D 61 63 : 2,hmac-sha1,hmac
02b0: 2D 73 68 61 31 2D 39 36  2C 68 6D 61 63 2D 6D 64 : -sha1-96,hmac-md
02c0: 35 2C 68 6D 61 63 2D 6D  64 35 2D 39 36 2C 68 6D : 5,hmac-md5-96,hm
02d0: 61 63 2D 72 69 70 65 6D  64 31 36 30 2C 68 6D 61 : ac-ripemd160,hma
02e0: 63 2D 72 69 70 65 6D 64  31 36 30 40 6F 70 65 6E : c-ripemd160@open
02f0: 73 73 68 2E 63 6F 6D 00  00 00 71 68 6D 61 63 2D : ssh.com...qhmac-
0300: 73 68 61 32 2D 32 35 36  2C 68 6D 61 63 2D 73 68 : sha2-256,hmac-sh
0310: 61 32 2D 35 31 32 2C 68  6D 61 63 2D 73 68 61 31 : a2-512,hmac-sha1
0320: 2C 68 6D 61 63 2D 73 68  61 31 2D 39 36 2C 68 6D : ,hmac-sha1-96,hm
0330: 61 63 2D 6D 64 35 2C 68  6D 61 63 2D 6D 64 35 2D : ac-md5,hmac-md5-
0340: 39 36 2C 68 6D 61 63 2D  72 69 70 65 6D 64 31 36 : 96,hmac-ripemd16
0350: 30 2C 68 6D 61 63 2D 72  69 70 65 6D 64 31 36 30 : 0,hmac-ripemd160
0360: 40 6F 70 65 6E 73 73 68  2E 63 6F 6D 00 00 00 04 : @openssh.com....
0370: 6E 6F 6E 65 00 00 00 04  6E 6F 6E 65 00 00 00 00 : none....none....
0380: 00 00 00 00 00 00 00 00  00                      : .........
=> libssh2_transport_write send() (920 bytes)
0000: 00 00 03 94 0A 14 89 0E  9A 69 74 65 23 27 D8 7D : .........ite#'.}
0010: DB 77 2F 11 8A 60 00 00  00 E6 65 63 64 68 2D 73 : .w/..`....ecdh-s
0020: 68 61 32 2D 6E 69 73 74  70 32 35 36 2C 65 63 64 : ha2-nistp256,ecd
0030: 68 2D 73 68 61 32 2D 6E  69 73 74 70 33 38 34 2C : h-sha2-nistp384,
0040: 65 63 64 68 2D 73 68 61  32 2D 6E 69 73 74 70 35 : ecdh-sha2-nistp5
0050: 32 31 2C 63 75 72 76 65  32 35 35 31 39 2D 73 68 : 21,curve25519-sh
0060: 61 32 35 36 2C 63 75 72  76 65 32 35 35 31 39 2D : a256,curve25519-
0070: 73 68 61 32 35 36 40 6C  69 62 73 73 68 2E 6F 72 : sha256@libssh.or
0080: 67 2C 64 69 66 66 69 65  2D 68 65 6C 6C 6D 61 6E : g,diffie-hellman
0090: 2D 67 72 6F 75 70 2D 65  78 63 68 61 6E 67 65 2D : -group-exchange-
00a0: 73 68 61 32 35 36 2C 64  69 66 66 69 65 2D 68 65 : sha256,diffie-he
00b0: 6C 6C 6D 61 6E 2D 67 72  6F 75 70 2D 65 78 63 68 : llman-group-exch
00c0: 61 6E 67 65 2D 73 68 61  31 2C 64 69 66 66 69 65 : ange-sha1,diffie
00d0: 2D 68 65 6C 6C 6D 61 6E  2D 67 72 6F 75 70 31 34 : -hellman-group14
00e0: 2D 73 68 61 31 2C 64 69  66 66 69 65 2D 68 65 6C : -sha1,diffie-hel
00f0: 6C 6D 61 6E 2D 67 72 6F  75 70 31 2D 73 68 61 31 : lman-group1-sha1
0100: 00 00 00 57 65 63 64 73  61 2D 73 68 61 32 2D 6E : ...Wecdsa-sha2-n
0110: 69 73 74 70 32 35 36 2C  65 63 64 73 61 2D 73 68 : istp256,ecdsa-sh
0120: 61 32 2D 6E 69 73 74 70  33 38 34 2C 65 63 64 73 : a2-nistp384,ecds
0130: 61 2D 73 68 61 32 2D 6E  69 73 74 70 35 32 31 2C : a-sha2-nistp521,
0140: 73 73 68 2D 65 64 32 35  35 31 39 2C 73 73 68 2D : ssh-ed25519,ssh-
0150: 72 73 61 2C 73 73 68 2D  64 73 73 00 00 00 92 61 : rsa,ssh-dss....a
0160: 65 73 31 32 38 2D 63 74  72 2C 61 65 73 31 39 32 : es128-ctr,aes192
0170: 2D 63 74 72 2C 61 65 73  32 35 36 2D 63 74 72 2C : -ctr,aes256-ctr,
0180: 61 65 73 32 35 36 2D 63  62 63 2C 72 69 6A 6E 64 : aes256-cbc,rijnd
0190: 61 65 6C 2D 63 62 63 40  6C 79 73 61 74 6F 72 2E : ael-cbc@lysator.
01a0: 6C 69 75 2E 73 65 2C 61  65 73 31 39 32 2D 63 62 : liu.se,aes192-cb
01b0: 63 2C 61 65 73 31 32 38  2D 63 62 63 2C 62 6C 6F : c,aes128-cbc,blo
01c0: 77 66 69 73 68 2D 63 62  63 2C 61 72 63 66 6F 75 : wfish-cbc,arcfou
01d0: 72 31 32 38 2C 61 72 63  66 6F 75 72 2C 63 61 73 : r128,arcfour,cas
01e0: 74 31 32 38 2D 63 62 63  2C 33 64 65 73 2D 63 62 : t128-cbc,3des-cb
01f0: 63 00 00 00 92 61 65 73  31 32 38 2D 63 74 72 2C : c....aes128-ctr,
0200: 61 65 73 31 39 32 2D 63  74 72 2C 61 65 73 32 35 : aes192-ctr,aes25
0210: 36 2D 63 74 72 2C 61 65  73 32 35 36 2D 63 62 63 : 6-ctr,aes256-cbc
0220: 2C 72 69 6A 6E 64 61 65  6C 2D 63 62 63 40 6C 79 : ,rijndael-cbc@ly
0230: 73 61 74 6F 72 2E 6C 69  75 2E 73 65 2C 61 65 73 : sator.liu.se,aes
0240: 31 39 32 2D 63 62 63 2C  61 65 73 31 32 38 2D 63 : 192-cbc,aes128-c
0250: 62 63 2C 62 6C 6F 77 66  69 73 68 2D 63 62 63 2C : bc,blowfish-cbc,
0260: 61 72 63 66 6F 75 72 31  32 38 2C 61 72 63 66 6F : arcfour128,arcfo
0270: 75 72 2C 63 61 73 74 31  32 38 2D 63 62 63 2C 33 : ur,cast128-cbc,3
0280: 64 65 73 2D 63 62 63 00  00 00 71 68 6D 61 63 2D : des-cbc...qhmac-
0290: 73 68 61 32 2D 32 35 36  2C 68 6D 61 63 2D 73 68 : sha2-256,hmac-sh
02a0: 61 32 2D 35 31 32 2C 68  6D 61 63 2D 73 68 61 31 : a2-512,hmac-sha1
02b0: 2C 68 6D 61 63 2D 73 68  61 31 2D 39 36 2C 68 6D : ,hmac-sha1-96,hm
02c0: 61 63 2D 6D 64 35 2C 68  6D 61 63 2D 6D 64 35 2D : ac-md5,hmac-md5-
02d0: 39 36 2C 68 6D 61 63 2D  72 69 70 65 6D 64 31 36 : 96,hmac-ripemd16
02e0: 30 2C 68 6D 61 63 2D 72  69 70 65 6D 64 31 36 30 : 0,hmac-ripemd160
02f0: 40 6F 70 65 6E 73 73 68  2E 63 6F 6D 00 00 00 71 : @openssh.com...q
0300: 68 6D 61 63 2D 73 68 61  32 2D 32 35 36 2C 68 6D : hmac-sha2-256,hm
0310: 61 63 2D 73 68 61 32 2D  35 31 32 2C 68 6D 61 63 : ac-sha2-512,hmac
0320: 2D 73 68 61 31 2C 68 6D  61 63 2D 73 68 61 31 2D : -sha1,hmac-sha1-
0330: 39 36 2C 68 6D 61 63 2D  6D 64 35 2C 68 6D 61 63 : 96,hmac-md5,hmac
0340: 2D 6D 64 35 2D 39 36 2C  68 6D 61 63 2D 72 69 70 : -md5-96,hmac-rip
0350: 65 6D 64 31 36 30 2C 68  6D 61 63 2D 72 69 70 65 : emd160,hmac-ripe
0360: 6D 64 31 36 30 40 6F 70  65 6E 73 73 68 2E 63 6F : md160@openssh.co
0370: 6D 00 00 00 04 6E 6F 6E  65 00 00 00 04 6E 6F 6E : m....none....non
0380: 65 00 00 00 00 00 00 00  00 00 00 00 00 00 73 82 : e.............s.
0390: 8A E4 82 5C 28 65 92 E6                          : ...\(e..
[libssh2] 0.122426 Transport: Looking for packet of type: 20
=> libssh2_transport_read() raw (1080 bytes)
0000: 00 00 04 34 07 14 29 F6  49 96 4E 22 88 CA 07 EE : ...4..).I.N"....
0010: 6E 00 07 A5 40 0D 00 00  01 09 63 75 72 76 65 32 : n...@.....curve2
0020: 35 35 31 39 2D 73 68 61  32 35 36 2C 63 75 72 76 : 5519-sha256,curv
0030: 65 32 35 35 31 39 2D 73  68 61 32 35 36 40 6C 69 : e25519-sha256@li
0040: 62 73 73 68 2E 6F 72 67  2C 65 63 64 68 2D 73 68 : bssh.org,ecdh-sh
0050: 61 32 2D 6E 69 73 74 70  32 35 36 2C 65 63 64 68 : a2-nistp256,ecdh
0060: 2D 73 68 61 32 2D 6E 69  73 74 70 33 38 34 2C 65 : -sha2-nistp384,e
0070: 63 64 68 2D 73 68 61 32  2D 6E 69 73 74 70 35 32 : cdh-sha2-nistp52
0080: 31 2C 73 6E 74 72 75 70  37 36 31 78 32 35 35 31 : 1,sntrup761x2551
0090: 39 2D 73 68 61 35 31 32  40 6F 70 65 6E 73 73 68 : 9-sha512@openssh
00a0: 2E 63 6F 6D 2C 64 69 66  66 69 65 2D 68 65 6C 6C : .com,diffie-hell
00b0: 6D 61 6E 2D 67 72 6F 75  70 2D 65 78 63 68 61 6E : man-group-exchan
00c0: 67 65 2D 73 68 61 32 35  36 2C 64 69 66 66 69 65 : ge-sha256,diffie
00d0: 2D 68 65 6C 6C 6D 61 6E  2D 67 72 6F 75 70 31 36 : -hellman-group16
00e0: 2D 73 68 61 35 31 32 2C  64 69 66 66 69 65 2D 68 : -sha512,diffie-h
00f0: 65 6C 6C 6D 61 6E 2D 67  72 6F 75 70 31 38 2D 73 : ellman-group18-s
0100: 68 61 35 31 32 2C 64 69  66 66 69 65 2D 68 65 6C : ha512,diffie-hel
0110: 6C 6D 61 6E 2D 67 72 6F  75 70 31 34 2D 73 68 61 : lman-group14-sha
0120: 32 35 36 00 00 00 39 72  73 61 2D 73 68 61 32 2D : 256...9rsa-sha2-
0130: 35 31 32 2C 72 73 61 2D  73 68 61 32 2D 32 35 36 : 512,rsa-sha2-256
0140: 2C 65 63 64 73 61 2D 73  68 61 32 2D 6E 69 73 74 : ,ecdsa-sha2-nist
0150: 70 32 35 36 2C 73 73 68  2D 65 64 32 35 35 31 39 : p256,ssh-ed25519
0160: 00 00 00 6C 63 68 61 63  68 61 32 30 2D 70 6F 6C : ...lchacha20-pol
0170: 79 31 33 30 35 40 6F 70  65 6E 73 73 68 2E 63 6F : y1305@openssh.co
0180: 6D 2C 61 65 73 31 32 38  2D 63 74 72 2C 61 65 73 : m,aes128-ctr,aes
0190: 31 39 32 2D 63 74 72 2C  61 65 73 32 35 36 2D 63 : 192-ctr,aes256-c
01a0: 74 72 2C 61 65 73 31 32  38 2D 67 63 6D 40 6F 70 : tr,aes128-gcm@op
01b0: 65 6E 73 73 68 2E 63 6F  6D 2C 61 65 73 32 35 36 : enssh.com,aes256
01c0: 2D 67 63 6D 40 6F 70 65  6E 73 73 68 2E 63 6F 6D : -gcm@openssh.com
01d0: 00 00 00 6C 63 68 61 63  68 61 32 30 2D 70 6F 6C : ...lchacha20-pol
01e0: 79 31 33 30 35 40 6F 70  65 6E 73 73 68 2E 63 6F : y1305@openssh.co
01f0: 6D 2C 61 65 73 31 32 38  2D 63 74 72 2C 61 65 73 : m,aes128-ctr,aes
0200: 31 39 32 2D 63 74 72 2C  61 65 73 32 35 36 2D 63 : 192-ctr,aes256-c
0210: 74 72 2C 61 65 73 31 32  38 2D 67 63 6D 40 6F 70 : tr,aes128-gcm@op
0220: 65 6E 73 73 68 2E 63 6F  6D 2C 61 65 73 32 35 36 : enssh.com,aes256
0230: 2D 67 63 6D 40 6F 70 65  6E 73 73 68 2E 63 6F 6D : -gcm@openssh.com
0240: 00 00 00 D5 75 6D 61 63  2D 36 34 2D 65 74 6D 40 : ....umac-64-etm@
0250: 6F 70 65 6E 73 73 68 2E  63 6F 6D 2C 75 6D 61 63 : openssh.com,umac
0260: 2D 31 32 38 2D 65 74 6D  40 6F 70 65 6E 73 73 68 : -128-etm@openssh
0270: 2E 63 6F 6D 2C 68 6D 61  63 2D 73 68 61 32 2D 32 : .com,hmac-sha2-2
0280: 35 36 2D 65 74 6D 40 6F  70 65 6E 73 73 68 2E 63 : 56-etm@openssh.c
0290: 6F 6D 2C 68 6D 61 63 2D  73 68 61 32 2D 35 31 32 : om,hmac-sha2-512
02a0: 2D 65 74 6D 40 6F 70 65  6E 73 73 68 2E 63 6F 6D : -etm@openssh.com
02b0: 2C 68 6D 61 63 2D 73 68  61 31 2D 65 74 6D 40 6F : ,hmac-sha1-etm@o
02c0: 70 65 6E 73 73 68 2E 63  6F 6D 2C 75 6D 61 63 2D : penssh.com,umac-
02d0: 36 34 40 6F 70 65 6E 73  73 68 2E 63 6F 6D 2C 75 : 64@openssh.com,u
02e0: 6D 61 63 2D 31 32 38 40  6F 70 65 6E 73 73 68 2E : mac-128@openssh.
02f0: 63 6F 6D 2C 68 6D 61 63  2D 73 68 61 32 2D 32 35 : com,hmac-sha2-25
0300: 36 2C 68 6D 61 63 2D 73  68 61 32 2D 35 31 32 2C : 6,hmac-sha2-512,
0310: 68 6D 61 63 2D 73 68 61  31 00 00 00 D5 75 6D 61 : hmac-sha1....uma
0320: 63 2D 36 34 2D 65 74 6D  40 6F 70 65 6E 73 73 68 : c-64-etm@openssh
0330: 2E 63 6F 6D 2C 75 6D 61  63 2D 31 32 38 2D 65 74 : .com,umac-128-et
0340: 6D 40 6F 70 65 6E 73 73  68 2E 63 6F 6D 2C 68 6D : m@openssh.com,hm
0350: 61 63 2D 73 68 61 32 2D  32 35 36 2D 65 74 6D 40 : ac-sha2-256-etm@
0360: 6F 70 65 6E 73 73 68 2E  63 6F 6D 2C 68 6D 61 63 : openssh.com,hmac
0370: 2D 73 68 61 32 2D 35 31  32 2D 65 74 6D 40 6F 70 : -sha2-512-etm@op
0380: 65 6E 73 73 68 2E 63 6F  6D 2C 68 6D 61 63 2D 73 : enssh.com,hmac-s
0390: 68 61 31 2D 65 74 6D 40  6F 70 65 6E 73 73 68 2E : ha1-etm@openssh.
03a0: 63 6F 6D 2C 75 6D 61 63  2D 36 34 40 6F 70 65 6E : com,umac-64@open
03b0: 73 73 68 2E 63 6F 6D 2C  75 6D 61 63 2D 31 32 38 : ssh.com,umac-128
03c0: 40 6F 70 65 6E 73 73 68  2E 63 6F 6D 2C 68 6D 61 : @openssh.com,hma
03d0: 63 2D 73 68 61 32 2D 32  35 36 2C 68 6D 61 63 2D : c-sha2-256,hmac-
03e0: 73 68 61 32 2D 35 31 32  2C 68 6D 61 63 2D 73 68 : sha2-512,hmac-sh
03f0: 61 31 00 00 00 15 6E 6F  6E 65 2C 7A 6C 69 62 40 : a1....none,zlib@
0400: 6F 70 65 6E 73 73 68 2E  63 6F 6D 00 00 00 15 6E : openssh.com....n
0410: 6F 6E 65 2C 7A 6C 69 62  40 6F 70 65 6E 73 73 68 : one,zlib@openssh
0420: 2E 63 6F 6D 00 00 00 00  00 00 00 00 00 00 00 00 : .com............
0430: 00 00 00 00 00 00 00 00                          : ........
=> libssh2_transport_read() plain (1068 bytes)
0000: 14 29 F6 49 96 4E 22 88  CA 07 EE 6E 00 07 A5 40 : .).I.N"....n...@
0010: 0D 00 00 01 09 63 75 72  76 65 32 35 35 31 39 2D : .....curve25519-
0020: 73 68 61 32 35 36 2C 63  75 72 76 65 32 35 35 31 : sha256,curve2551
0030: 39 2D 73 68 61 32 35 36  40 6C 69 62 73 73 68 2E : 9-sha256@libssh.
0040: 6F 72 67 2C 65 63 64 68  2D 73 68 61 32 2D 6E 69 : org,ecdh-sha2-ni
0050: 73 74 70 32 35 36 2C 65  63 64 68 2D 73 68 61 32 : stp256,ecdh-sha2
0060: 2D 6E 69 73 74 70 33 38  34 2C 65 63 64 68 2D 73 : -nistp384,ecdh-s
0070: 68 61 32 2D 6E 69 73 74  70 35 32 31 2C 73 6E 74 : ha2-nistp521,snt
0080: 72 75 70 37 36 31 78 32  35 35 31 39 2D 73 68 61 : rup761x25519-sha
0090: 35 31 32 40 6F 70 65 6E  73 73 68 2E 63 6F 6D 2C : 512@openssh.com,
00a0: 64 69 66 66 69 65 2D 68  65 6C 6C 6D 61 6E 2D 67 : diffie-hellman-g
00b0: 72 6F 75 70 2D 65 78 63  68 61 6E 67 65 2D 73 68 : roup-exchange-sh
00c0: 61 32 35 36 2C 64 69 66  66 69 65 2D 68 65 6C 6C : a256,diffie-hell
00d0: 6D 61 6E 2D 67 72 6F 75  70 31 36 2D 73 68 61 35 : man-group16-sha5
00e0: 31 32 2C 64 69 66 66 69  65 2D 68 65 6C 6C 6D 61 : 12,diffie-hellma
00f0: 6E 2D 67 72 6F 75 70 31  38 2D 73 68 61 35 31 32 : n-group18-sha512
0100: 2C 64 69 66 66 69 65 2D  68 65 6C 6C 6D 61 6E 2D : ,diffie-hellman-
0110: 67 72 6F 75 70 31 34 2D  73 68 61 32 35 36 00 00 : group14-sha256..
0120: 00 39 72 73 61 2D 73 68  61 32 2D 35 31 32 2C 72 : .9rsa-sha2-512,r
0130: 73 61 2D 73 68 61 32 2D  32 35 36 2C 65 63 64 73 : sa-sha2-256,ecds
0140: 61 2D 73 68 61 32 2D 6E  69 73 74 70 32 35 36 2C : a-sha2-nistp256,
0150: 73 73 68 2D 65 64 32 35  35 31 39 00 00 00 6C 63 : ssh-ed25519...lc
0160: 68 61 63 68 61 32 30 2D  70 6F 6C 79 31 33 30 35 : hacha20-poly1305
0170: 40 6F 70 65 6E 73 73 68  2E 63 6F 6D 2C 61 65 73 : @openssh.com,aes
0180: 31 32 38 2D 63 74 72 2C  61 65 73 31 39 32 2D 63 : 128-ctr,aes192-c
0190: 74 72 2C 61 65 73 32 35  36 2D 63 74 72 2C 61 65 : tr,aes256-ctr,ae
01a0: 73 31 32 38 2D 67 63 6D  40 6F 70 65 6E 73 73 68 : s128-gcm@openssh
01b0: 2E 63 6F 6D 2C 61 65 73  32 35 36 2D 67 63 6D 40 : .com,aes256-gcm@
01c0: 6F 70 65 6E 73 73 68 2E  63 6F 6D 00 00 00 6C 63 : openssh.com...lc
01d0: 68 61 63 68 61 32 30 2D  70 6F 6C 79 31 33 30 35 : hacha20-poly1305
01e0: 40 6F 70 65 6E 73 73 68  2E 63 6F 6D 2C 61 65 73 : @openssh.com,aes
01f0: 31 32 38 2D 63 74 72 2C  61 65 73 31 39 32 2D 63 : 128-ctr,aes192-c
0200: 74 72 2C 61 65 73 32 35  36 2D 63 74 72 2C 61 65 : tr,aes256-ctr,ae
0210: 73 31 32 38 2D 67 63 6D  40 6F 70 65 6E 73 73 68 : s128-gcm@openssh
0220: 2E 63 6F 6D 2C 61 65 73  32 35 36 2D 67 63 6D 40 : .com,aes256-gcm@
0230: 6F 70 65 6E 73 73 68 2E  63 6F 6D 00 00 00 D5 75 : openssh.com....u
0240: 6D 61 63 2D 36 34 2D 65  74 6D 40 6F 70 65 6E 73 : mac-64-etm@opens
0250: 73 68 2E 63 6F 6D 2C 75  6D 61 63 2D 31 32 38 2D : sh.com,umac-128-
0260: 65 74 6D 40 6F 70 65 6E  73 73 68 2E 63 6F 6D 2C : etm@openssh.com,
0270: 68 6D 61 63 2D 73 68 61  32 2D 32 35 36 2D 65 74 : hmac-sha2-256-et
0280: 6D 40 6F 70 65 6E 73 73  68 2E 63 6F 6D 2C 68 6D : m@openssh.com,hm
0290: 61 63 2D 73 68 61 32 2D  35 31 32 2D 65 74 6D 40 : ac-sha2-512-etm@
02a0: 6F 70 65 6E 73 73 68 2E  63 6F 6D 2C 68 6D 61 63 : openssh.com,hmac
02b0: 2D 73 68 61 31 2D 65 74  6D 40 6F 70 65 6E 73 73 : -sha1-etm@openss
02c0: 68 2E 63 6F 6D 2C 75 6D  61 63 2D 36 34 40 6F 70 : h.com,umac-64@op
02d0: 65 6E 73 73 68 2E 63 6F  6D 2C 75 6D 61 63 2D 31 : enssh.com,umac-1
02e0: 32 38 40 6F 70 65 6E 73  73 68 2E 63 6F 6D 2C 68 : 28@openssh.com,h
02f0: 6D 61 63 2D 73 68 61 32  2D 32 35 36 2C 68 6D 61 : mac-sha2-256,hma
0300: 63 2D 73 68 61 32 2D 35  31 32 2C 68 6D 61 63 2D : c-sha2-512,hmac-
0310: 73 68 61 31 00 00 00 D5  75 6D 61 63 2D 36 34 2D : sha1....umac-64-
0320: 65 74 6D 40 6F 70 65 6E  73 73 68 2E 63 6F 6D 2C : etm@openssh.com,
0330: 75 6D 61 63 2D 31 32 38  2D 65 74 6D 40 6F 70 65 : umac-128-etm@ope
0340: 6E 73 73 68 2E 63 6F 6D  2C 68 6D 61 63 2D 73 68 : nssh.com,hmac-sh
0350: 61 32 2D 32 35 36 2D 65  74 6D 40 6F 70 65 6E 73 : a2-256-etm@opens
0360: 73 68 2E 63 6F 6D 2C 68  6D 61 63 2D 73 68 61 32 : sh.com,hmac-sha2
0370: 2D 35 31 32 2D 65 74 6D  40 6F 70 65 6E 73 73 68 : -512-etm@openssh
0380: 2E 63 6F 6D 2C 68 6D 61  63 2D 73 68 61 31 2D 65 : .com,hmac-sha1-e
0390: 74 6D 40 6F 70 65 6E 73  73 68 2E 63 6F 6D 2C 75 : tm@openssh.com,u
03a0: 6D 61 63 2D 36 34 40 6F  70 65 6E 73 73 68 2E 63 : mac-64@openssh.c
03b0: 6F 6D 2C 75 6D 61 63 2D  31 32 38 40 6F 70 65 6E : om,umac-128@open
03c0: 73 73 68 2E 63 6F 6D 2C  68 6D 61 63 2D 73 68 61 : ssh.com,hmac-sha
03d0: 32 2D 32 35 36 2C 68 6D  61 63 2D 73 68 61 32 2D : 2-256,hmac-sha2-
03e0: 35 31 32 2C 68 6D 61 63  2D 73 68 61 31 00 00 00 : 512,hmac-sha1...
03f0: 15 6E 6F 6E 65 2C 7A 6C  69 62 40 6F 70 65 6E 73 : .none,zlib@opens
0400: 73 68 2E 63 6F 6D 00 00  00 15 6E 6F 6E 65 2C 7A : sh.com....none,z
0410: 6C 69 62 40 6F 70 65 6E  73 73 68 2E 63 6F 6D 00 : lib@openssh.com.
0420: 00 00 00 00 00 00 00 00  00 00 00 00             : ............
[libssh2] 0.123611 Transport: Packet type 20 received, length=1068
[libssh2] 0.123616 Transport: Looking for packet of type: 20
[libssh2] 0.123623 Key Ex: Agreed on KEX method: ecdh-sha2-nistp256
[libssh2] 0.123627 Key Ex: Agreed on HOSTKEY method: ecdsa-sha2-nistp256
[libssh2] 0.123630 Key Ex: Agreed on CRYPT_CS method: aes128-ctr
[libssh2] 0.123640 Key Ex: Agreed on CRYPT_SC method: aes128-ctr
[libssh2] 0.123643 Key Ex: Agreed on MAC_CS method: hmac-sha2-256
[libssh2] 0.123647 Key Ex: Agreed on MAC_SC method: hmac-sha2-256
[libssh2] 0.123650 Key Ex: Agreed on COMP_CS method: none
[libssh2] 0.123653 Key Ex: Agreed on COMP_SC method: none
[libssh2] 0.123755 Key Ex: Initiating ECDH SHA2 NISTP256
=> libssh2_transport_write plain (70 bytes)
0000: 1E 00 00 00 41 04 01 C9  D3 80 7A 58 A7 D8 E5 07 : ....A.....zX....
0010: 74 FD 0B 6B 58 0B 53 35  E5 50 F6 76 1A ED BC 65 : t..kX.S5.P.v...e
0020: C1 CF C6 24 FB AC B5 2E  C8 0B 90 E9 8D 7C DB 5E : ...$.........|.^
0030: 81 D0 BB AD 77 B7 92 2A  3C 84 3F 72 7A 52 EC F3 : ....w..*<.?rzR..
0040: E6 34 0D C3 EB D9                                : .4....
=> libssh2_transport_write send() (80 bytes)
0000: 00 00 00 4C 05 1E 00 00  00 41 04 01 C9 D3 80 7A : ...L.....A.....z
0010: 58 A7 D8 E5 07 74 FD 0B  6B 58 0B 53 35 E5 50 F6 : X....t..kX.S5.P.
0020: 76 1A ED BC 65 C1 CF C6  24 FB AC B5 2E C8 0B 90 : v...e...$.......
0030: E9 8D 7C DB 5E 81 D0 BB  AD 77 B7 92 2A 3C 84 3F : ..|.^....w..*<.?
0040: 72 7A 52 EC F3 E6 34 0D  C3 EB D9 88 40 D3 FF CD : rzR...4.....@...
[libssh2] 0.123871 Transport: Looking for packet of type: 31
=> libssh2_transport_read() raw (312 bytes)
0000: 00 00 01 24 08 1F 00 00  00 68 00 00 00 13 65 63 : ...$.....h....ec
0010: 64 73 61 2D 73 68 61 32  2D 6E 69 73 74 70 32 35 : dsa-sha2-nistp25
0020: 36 00 00 00 08 6E 69 73  74 70 32 35 36 00 00 00 : 6....nistp256...
0030: 41 04 FE 76 51 74 29 B3  20 01 F3 F7 9E 70 E8 C3 : A..vQt). ....p..
0040: 46 28 ED 13 AB 80 FC BC  B9 8D D7 74 8F 13 E7 11 : F(.........t....
0050: 9A C9 0C 63 51 AF 5B 80  ED C7 62 F5 6E 9E 13 14 : ...cQ.[...b.n...
0060: 3F 92 DA C2 2E 08 02 E6  C5 84 F6 96 EC 45 FB D4 : ?............E..
0070: 80 3D 00 00 00 41 04 CC  44 6D A3 21 80 7E 78 AF : .=...A..Dm.!.~x.
0080: 5A 2E 07 03 0D E8 81 3C  6B 22 79 67 9C CB 46 3C : Z......<k"yg..F<
0090: A1 09 C0 72 95 F9 40 48  9A EE 95 1B 58 9F 0F F3 : ...r..@H....X...
00a0: 25 2D 73 FC E6 8E B0 80  D0 8E F1 AB 74 16 24 B1 : %-s.........t.$.
00b0: C5 DD FA 52 FA B5 94 00  00 00 65 00 00 00 13 65 : ...R......e....e
00c0: 63 64 73 61 2D 73 68 61  32 2D 6E 69 73 74 70 32 : cdsa-sha2-nistp2
00d0: 35 36 00 00 00 4A 00 00  00 21 00 D8 E6 AE 68 9F : 56...J...!....h.
00e0: 4F BD 6C 8B 8A EA 42 B8  D7 32 D6 5F 4E 56 DD 54 : O.l...B..2._NV.T
00f0: B0 BF 71 73 11 5B 23 95  88 4E B2 00 00 00 21 00 : ..qs.[#..N....!.
0100: AC 5A 2B 4B 1B 85 2F E1  AF 90 3E CC D3 EE B1 06 : .Z+K../...>.....
0110: AF 75 AA BB ED 4F A0 C2  57 7E 57 66 79 87 FB FF : .u...O..W~Wfy...
0120: 00 00 00 00 00 00 00 00  00 00 00 0C 0A 15 00 00 : ................
0130: 00 00 00 00 00 00 00 00                          : ........
=> libssh2_transport_read() plain (283 bytes)
0000: 1F 00 00 00 68 00 00 00  13 65 63 64 73 61 2D 73 : ....h....ecdsa-s
0010: 68 61 32 2D 6E 69 73 74  70 32 35 36 00 00 00 08 : ha2-nistp256....
0020: 6E 69 73 74 70 32 35 36  00 00 00 41 04 FE 76 51 : nistp256...A..vQ
0030: 74 29 B3 20 01 F3 F7 9E  70 E8 C3 46 28 ED 13 AB : t). ....p..F(...
0040: 80 FC BC B9 8D D7 74 8F  13 E7 11 9A C9 0C 63 51 : ......t.......cQ
0050: AF 5B 80 ED C7 62 F5 6E  9E 13 14 3F 92 DA C2 2E : .[...b.n...?....
0060: 08 02 E6 C5 84 F6 96 EC  45 FB D4 80 3D 00 00 00 : ........E...=...
0070: 41 04 CC 44 6D A3 21 80  7E 78 AF 5A 2E 07 03 0D : A..Dm.!.~x.Z....
0080: E8 81 3C 6B 22 79 67 9C  CB 46 3C A1 09 C0 72 95 : ..<k"yg..F<...r.
0090: F9 40 48 9A EE 95 1B 58  9F 0F F3 25 2D 73 FC E6 : .@H....X...%-s..
00a0: 8E B0 80 D0 8E F1 AB 74  16 24 B1 C5 DD FA 52 FA : .......t.$....R.
00b0: B5 94 00 00 00 65 00 00  00 13 65 63 64 73 61 2D : .....e....ecdsa-
00c0: 73 68 61 32 2D 6E 69 73  74 70 32 35 36 00 00 00 : sha2-nistp256...
00d0: 4A 00 00 00 21 00 D8 E6  AE 68 9F 4F BD 6C 8B 8A : J...!....h.O.l..
00e0: EA 42 B8 D7 32 D6 5F 4E  56 DD 54 B0 BF 71 73 11 : .B..2._NV.T..qs.
00f0: 5B 23 95 88 4E B2 00 00  00 21 00 AC 5A 2B 4B 1B : [#..N....!..Z+K.
0100: 85 2F E1 AF 90 3E CC D3  EE B1 06 AF 75 AA BB ED : ./...>......u...
0110: 4F A0 C2 57 7E 57 66 79  87 FB FF                : O..W~Wfy...
[libssh2] 0.127751 Transport: Packet type 31 received, length=283
[libssh2] 0.127760 Transport: Looking for packet of type: 31
[libssh2] 0.127844 Key Ex: Server's MD5 Fingerprint: 17:55:4c:0b:6d:9c:44:cf:bc:1a:3c:0f:ba:60:1c:21
[libssh2] 0.127878 Key Ex: Server's SHA1 Fingerprint: 14:c2:8e:12:32:8e:18:cd:69:2d:d9:b6:f6:c2:71:ef:a4:57:be:7d
[libssh2] 0.127900 Key Ex: Server's SHA256 Fingerprint: 0EQGE662FOmviHWcXqGCTJM9P0AjAlarANzQQr5Sxcw=
=> libssh2_transport_write plain (1 bytes)
0000: 15                                               : .
=> libssh2_transport_write send() (16 bytes)
0000: 00 00 00 0C 0A 15 EC 6A  BA 17 FE 46 A8 86 2E 25 : .......j...F...%
[libssh2] 0.128416 Transport: Looking for packet of type: 21
=> libssh2_transport_read() plain (1 bytes)
0000: 15                                               : .
[libssh2] 0.128430 Transport: Packet type 21 received, length=1
[libssh2] 0.128435 Transport: Looking for packet of type: 21
[libssh2] 0.128461 Key Ex: Received NEWKEYS message
[libssh2] 0.128561 Key Ex: session_id calculated
[libssh2] 0.128596 Key Ex: Client to Server IV and Key calculated
[libssh2] 0.128635 Key Ex: Server to Client IV and Key calculated
[libssh2] 0.128644 Key Ex: Client to Server HMAC Key calculated
[libssh2] 0.128650 Key Ex: Server to Client HMAC Key calculated
[libssh2] 0.128655 Key Ex: Client to Server compression initialized
[libssh2] 0.128659 Key Ex: Server to Client compression initialized
[libssh2] 0.128666 Transport: Requesting userauth service
=> libssh2_transport_write plain (17 bytes)
0000: 05 00 00 00 0C 73 73 68  2D 75 73 65 72 61 75 74 : .....ssh-useraut
0010: 68                                               : h
=> libssh2_transport_write send() (64 bytes)
0000: 9F FD FD 22 B2 D6 C4 25  D2 4B EF 04 0B DE 93 45 : ..."...%.K.....E
0010: E3 17 5F F2 66 DE 82 AF  A9 E7 77 EB 56 D8 03 BB : .._.f.....w.V...
0020: 22 6C 5D 0D 79 2B 09 4A  58 04 E5 A3 64 85 A7 17 : "l].y+.JX...d...
0030: 90 2D F9 47 6F F1 E1 36  B5 CB 37 08 55 88 40 2C : .-.Go..6..7.U.@,
[libssh2] 0.128726 Transport: Looking for packet of type: 6
=> libssh2_transport_read() raw (64 bytes)
0000: 8C 65 81 51 1F A0 CA 48  F3 BB 09 20 EF 65 EA 5F : .e.Q...H... .e._
0010: 72 D5 A2 47 D1 C7 3F 27  00 A3 B0 27 75 81 4C B7 : r..G..?'...'u.L.
0020: 16 16 39 93 75 BF 5B 26  91 5B 70 D2 28 B8 89 8E : ..9.u.[&.[p.(...
0030: 2F 44 BE A0 2E 5D A5 C8  F5 C4 D9 64 C4 69 EE C5 : /D...].....d.i..
=> libssh2_transport_read() plain (17 bytes)
0000: 06 00 00 00 0C 73 73 68  2D 75 73 65 72 61 75 74 : .....ssh-useraut
0010: 68                                               : h
[libssh2] 0.131677 Transport: Packet type 6 received, length=17
[libssh2] 0.131682 Transport: Looking for packet of type: 6
[libssh2] 0.131727 Userauth: Loading public key file: /tmp/id_rsa.pub
[libssh2] 0.131789 Userauth: Attempting publickey authentication
=> libssh2_transport_write plain (467 bytes)
0000: 32 00 00 00 08 73 66 74  70 75 73 65 72 00 00 00 : 2....sftpuser...
0010: 0E 73 73 68 2D 63 6F 6E  6E 65 63 74 69 6F 6E 00 : .ssh-connection.
0020: 00 00 09 70 75 62 6C 69  63 6B 65 79 00 00 00 00 : ...publickey....
0030: 07 73 73 68 2D 72 73 61  00 00 01 97 00 00 00 07 : .ssh-rsa........
0040: 73 73 68 2D 72 73 61 00  00 00 03 01 00 01 00 00 : ssh-rsa.........
0050: 01 81 00 F2 32 85 8F 75  60 DD DA C3 51 04 B6 37 : ....2..u`...Q..7
0060: 6B 2B 43 74 84 2E DA 0C  1E AC B4 30 B2 57 F2 E1 : k+Ct.......0.W..
0070: F0 7C 51 B1 54 1F DD 24  58 C3 69 75 0F 7B 5F 83 : .|Q.T..$X.iu.{_.
0080: 1E 49 BA A4 B1 99 B3 22  DD 12 DC 7C 28 91 FF C3 : .I....."...|(...
0090: DF AD FE E8 A1 01 6A DF  59 0A 6F BB 5A 77 01 55 : ......j.Y.o.Zw.U
00a0: 98 25 C9 00 F4 8B 42 83  E9 C8 BC 76 DE EC CE 8A : .%....B....v....
00b0: 16 01 77 AC ED A5 58 02  A3 AC E7 D0 01 10 14 43 : ..w...X........C
00c0: 11 A7 B3 59 98 E4 C6 12  77 81 78 B0 7A 85 78 8F : ...Y....w.x.z.x.
00d0: 67 9F 57 D1 D0 07 30 66  3E B7 D3 B8 6A C2 2F D5 : g.W...0f>...j./.
00e0: 0F 3C 43 C0 1F F4 D1 D6  AC E2 72 A7 26 DE C0 EE : .<C.......r.&...
00f0: 18 21 C5 D5 F2 1F 25 D9  B7 CA 45 2B 16 EB 08 CE : .!....%...E+....
0100: 72 FB AF 61 BC 71 C3 D4  AB 9C 0C 1F D8 D5 5C 94 : r..a.q........\.
0110: F9 AF 75 7F A4 FF F6 11  A4 B5 ED 17 48 E2 15 9A : ..u.........H...
0120: 12 DE 0C 0A 33 62 3D AF  DE 75 24 9B 1A C9 8D 02 : ....3b=..u$.....
0130: 15 E2 99 1B 77 6E F4 30  65 2B E5 D0 4A 24 21 DA : ....wn.0e+..J$!.
0140: 7C AE 5B F3 24 55 C3 59  D7 84 E9 55 67 F1 25 69 : |.[.$U.Y...Ug.%i
0150: 01 43 18 57 B4 5F E6 3D  99 9F B2 36 56 AF A7 5B : .C.W._.=...6V..[
0160: 49 8F 11 A2 EE D3 6D 92  E4 4B 56 2B 73 14 5F 8B : I.....m..KV+s._.
0170: F2 E7 53 D4 26 F6 7A BE  9B B9 80 FA 4A 96 A0 B5 : ..S.&.z.....J...
0180: DC 02 72 FE B1 CB 66 F2  3E A6 C7 47 62 C4 65 DB : ..r...f.>..Gb.e.
0190: D0 FC 89 D8 20 F3 43 27  C9 C6 35 64 A9 80 01 5D : .... .C'..5d...]
01a0: 22 3A 4C 22 E1 FD 09 EF  AB E3 C2 35 67 A3 AB 62 : ":L".......5g..b
01b0: CB 54 88 96 17 3C 62 8D  FB 49 5C 9E 65 85 2E D0 : .T...<b..I\.e...
01c0: C2 C0 90 70 97 37 B1 04  3C A0 47 A7 C0 C1 10 53 : ...p.7..<.G....S
01d0: 7C 56 4D                                         : |VM
=> libssh2_transport_write send() (512 bytes)
0000: 79 58 67 E6 BE AE BE 11  44 08 1F 69 84 0E 01 6E : yXg.....D..i...n
0010: 25 62 2A F4 D4 84 EC 87  CD EB 89 CB 60 7D 8B D7 : %b*.........`}..
0020: F4 16 EF 2E CD DE 6C 23  46 04 E4 3E 29 AB E0 BB : ......l#F..>)...
0030: B4 06 DD 1D C2 B1 55 A9  96 3A A4 CD 5E DC C6 70 : ......U..:..^..p
0040: 07 DC CC A0 25 D9 B2 1C  14 67 B2 8C EB C8 71 F8 : ....%....g....q.
0050: 9C 29 8C B2 79 41 36 71  9B 18 12 BE 77 8D CC D0 : .)..yA6q....w...
0060: 60 19 5C 9C A6 0C 4D 6B  DF AB D1 48 52 30 92 6E : `.\...Mk...HR0.n
0070: 2F 7B 30 91 74 F2 B4 AF  7C B9 BA 4F D9 25 D1 76 : /{0.t...|..O.%.v
0080: FE AC 5D C0 7B E2 A9 00  AD 74 C8 F6 E4 73 83 27 : ..].{....t...s.'
0090: 3B 19 5C C5 A8 30 CF C3  DB 79 92 73 74 5D D4 91 : ;.\..0...y.st]..
00a0: A3 77 5B 4F B2 43 38 90  C5 55 7D 47 F4 B0 30 FD : .w[O.C8..U}G..0.
00b0: AA 49 E1 1F 23 21 BB EA  04 13 41 39 9D 65 24 BD : .I..#!....A9.e$.
00c0: 3A 35 25 F2 AF 26 31 62  C6 3C AD F7 CB FC A8 65 : :5%..&1b.<.....e
00d0: 00 6D 61 E2 94 08 8C B9  53 AA 7D 05 65 B0 E5 D0 : .ma.....S.}.e...
00e0: D7 8A 8C AF 81 8A BE 44  23 CE 45 B1 CB 13 C6 06 : .......D#.E.....
00f0: 01 1B 1A 8C 86 C8 F6 20  E7 C6 E4 27 8C F3 F0 3E : ....... ...'...>
0100: 3C 58 22 27 82 89 BC 9C  F1 3A 34 0C CF E0 EC FF : <X"'.....:4.....
0110: DE 11 5E 2C 38 F2 16 EF  F4 1E B3 CA 9E 44 6A C9 : ..^,8........Dj.
0120: E5 AD CF EE BB 12 B5 BF  85 88 7D 84 6A 62 CF 79 : ..........}.jb.y
0130: 10 DA ED 5D 7C 5F 21 6F  D8 0A 2B 48 EE 89 6D 46 : ...]|_!o..+H..mF
0140: 5A B3 28 49 14 03 81 04  52 09 0F 53 86 F4 10 CB : Z.(I....R..S....
0150: FF 80 C9 32 C3 56 31 59  24 86 F2 DF 81 55 18 5E : ...2.V1Y$....U.^
0160: 68 64 21 94 E2 1A 08 6A  CF AD 44 69 4A C8 C4 63 : hd!....j..DiJ..c
0170: 92 51 C4 E8 84 56 9F 26  5F F3 25 1A 6C 90 C9 68 : .Q...V.&_.%.l..h
0180: 58 3C 65 D1 A4 C5 54 72  EA F2 6D EA E6 BF AE D5 : X<e...Tr..m.....
0190: F2 CC FA 83 95 45 04 B1  7E 02 04 7D 5D 55 40 89 : .....E..~..}]U@.
01a0: 47 05 FA AF B7 17 9D 22  E9 25 6C E0 90 0D 97 EE : G......".%l.....
01b0: 15 B6 8C 72 1F 9A A8 4D  FD 1A D7 C0 53 1E FC 53 : ...r...M....S..S
01c0: C5 E8 C7 6D 4B 74 6A 02  3C 46 C9 DD CE CE 8B 52 : ...mKtj.<F.....R
01d0: A5 2A A7 72 FB AB E8 8F  23 AB 15 EC F4 26 C9 D6 : .*.r....#....&..
01e0: 4E F6 25 66 E3 3A 3C 5C  BD 7A F9 B7 80 21 82 BB : N.%f.:<\.z...!..
01f0: E0 30 C9 F2 43 DC 5D BD  1C 33 E1 E9 37 61 59 87 : .0..C.]..3..7aY.
[libssh2] 0.132649 Transport: Looking for packet of type: 52
[libssh2] 0.132656 Transport: Looking for packet of type: 51
[libssh2] 0.132663 Transport: Looking for packet of type: 60
[libssh2] 0.143579 Transport: Looking for packet of type: 52
[libssh2] 0.143609 Transport: Looking for packet of type: 51
[libssh2] 0.143615 Transport: Looking for packet of type: 60
=> libssh2_transport_read() raw (64 bytes)
0000: 10 8E FD 7E 07 0B B0 E7  36 40 8F 0D B7 F2 E9 1E : ...~....6@......
0010: DF 83 7D 61 2F 1A A8 58  3F 88 57 9D 40 1C 58 59 : ..}a/..X?.W.@.XY
0020: 52 C3 3D 52 51 5A B0 E7  DE 7D 5D D8 D7 D3 7B C4 : R.=RQZ...}]...{.
0030: 4B BF 1D 5A B7 6F 8C C2  1D 6A 25 78 0C 86 C6 06 : K..Z.o...j%x....
=> libssh2_transport_read() plain (15 bytes)
0000: 33 00 00 00 09 70 75 62  6C 69 63 6B 65 79 00    : 3....publickey.
[libssh2] 0.143692 Transport: Packet type 51 received, length=15
[libssh2] 0.143698 Transport: Looking for packet of type: 52
[libssh2] 0.143703 Transport: Looking for packet of type: 51
[libssh2] 0.143709 Failure Event: -18 - Username/PublicKey combination invalid
[libssh2] 0.144053 Failure Event: -34 - session not authenticated yet
[libssh2] 15.367362 Transport: Disconnecting: reason=11, desc=Good bye, lang=
=> libssh2_transport_write plain (21 bytes)
0000: 01 00 00 00 0B 00 00 00  08 47 6F 6F 64 20 62 79 : .........Good by
0010: 65 00 00 00 00                                   : e....
=> libssh2_transport_write plain2 (0 bytes)
=> libssh2_transport_write send() (64 bytes)
0000: 1C 84 AC BD 0F E3 6D 03  20 D7 CB 4E 6B 75 73 2A : ......m. ..Nkus*
0010: 31 07 B8 3C 81 51 A1 54  1C F2 54 3A 3A 3F F5 ED : 1..<.Q.T..T::?..
0020: D7 F4 F0 D1 9C F4 3D DB  2E 00 04 69 CF E1 3F 00 : ......=....i..?.
0030: BE 2C 4B 86 BE 41 46 B8  CC CC D2 44 C0 00 A3 D0 : .,K..AF....D....
[libssh2] 15.367584 Transport: Freeing session resource
[libssh2] 15.367594 Transport: Extra packets left 0

Hopefully you've figured this out by now but I'd suggest looking at the Filezilla logs to see if anythings stands out compared to the ssh log you get from IRIS.

My best guess is that the FTP server may not support specifically "key-pair" authentication or might require multiple forms of authentication and the other sftp methods you tried (Filezilla, sftp) may be succeeding with other auth methods. This is somewhat documented here:

https://docs.intersystems.com/iris20221/csp/documatic/%25CSP.Documatic.cls?LIBRARY=%25SYS&CLASSNAME=%25Net.SSH.Session#AuthenticateWithKeyPair

You could reach out to the WRC with this.

Thank you very much.

I will check the normal logs against the abnormal logs.