Debug CoreTunnel

Hi I am using core tunnel on Ventura without the corehelper and I am trying to debug some problem on a connection. I increased the log level to Debug3 but where can I find the actual logs? Can I find them somewhere in the filesystem?

Thanks!

To reveal log content in Core Tunnel, click the arrow button on tunnel's summary pane:

Great!!!

Many Thanks!!! It is kind of hidden. Perhaps a button like logs is easier to the eye.

My problem was that the ssh key was password protected. However the gui upon connection never asked me for the key password. I think this used to work in previous versions (before Ventura). Is this something that I can somehow configure? Could not found where I can enter the key. I do not use corehelper.

Thanks again!

Could you please paste the desensitized log? It would help me to identify the problem.

Yang

Hi there, I include the logs further down.

Please note that I can run successfully from the command line the

Equivalent Command: ssh -N -i "/Users/user/Library/Group Containers/E78WKS7W4U.io.coressh.ssh/.ssh/privatekey/id_ed25519.core_tunnel" -vvv -D 9998 -o ServerAliveInterval=15 -o ExitOnForwardFailure=yes -o TCPKeepAlive=no -p 22 user@remote_host.xxx.xx

Also in the logs I see

07:37:53 debug1: Server accepts key: /Users/user/Library/Group Containers/E78WKS7W4U.io.coressh.ssh/.ssh/privatekey/id_ed25519.core_tunnel ED25519 SHA256:WDLztK+qTiWHVhXc+5iJBkxRBt1WClPP8ROqz2M/iGA explicit
07:37:53 debug3: sign_and_send_pubkey: ED25519 SHA256:WDLztK+qTiWHVhXc+5iJBkxRBt1WClPP8ROqz2M/iGA
07:37:53 debug3: sign_and_send_pubkey: signing using ssh-ed25519 SHA256:WDLztK+qTiWHVhXc+5iJBkxRBt1WClPP8ROqz2M/iGA
07:37:53 debug1: read_passphrase: requested to askpass
07:37:53 debug2: no passphrase given, try next key

However the CoreTunnel Gui does not give me a window to give the key's password.

I only get a window to give the user's password further down:

07:37:53 debug2: no passphrase given, try next key
07:37:53 debug2: we did not send a packet, disable method
07:37:53 debug3: authmethod_lookup password
07:37:53 debug3: remaining preferred: ,password
07:37:53 debug3: authmethod_is_enabled password
07:37:53 debug1: Next authentication method: password
07:37:53 debug1: read_passphrase: requested to askpass
07:37:53 debug3: send packet: type 50
07:37:53 debug2: we sent a password packet, wait for reply
07:37:56 debug3: receive packet: type 51
07:37:56 debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
07:37:56 Permission denied, please try again.
07:37:56 debug1: read_passphrase: requested to askpass
07:37:58 The operation was canceled.
07:37:58 Abnormal Disconnect

Thanks again!!!

Equivalent Command: ssh -N -i "/Users/user/Library/Group Containers/E78WKS7W4U.io.coressh.ssh/.ssh/privatekey/id_ed25519.core_tunnel" -vvv -D 9998 -o ServerAliveInterval=15 -o ExitOnForwardFailure=yes -o TCPKeepAlive=no -p 22 user@remote_host.xxx.xx
07:37:50 Connecting…
07:37:50 Using Embeded Helper 3.6.2 (r3408)
07:37:50 OpenSSH_8.8p1, OpenSSL 1.1.1l  24 Aug 2021
07:37:50 debug1: Reading configuration data /Users/user/Library/Group Containers/E78WKS7W4U.io.coressh.ssh/.ssh/config
07:37:50 debug1: /Users/user/Library/Group Containers/E78WKS7W4U.io.coressh.ssh/.ssh/config line 7: Applying options for *
07:37:50 debug2: resolving "remote_host.xxx.xx" port 22
07:37:50 debug3: resolve_host: lookup remote_host.xxx.xx:22
07:37:53 debug3: ssh_connect_direct: entering
07:37:53 debug1: Connecting to remote_host.xxx.xx [147.102.13.170] port 22.
07:37:53 debug3: set_sock_tos: set socket 5 IP_TOS 0x48
07:37:53 debug1: Connection established.
07:37:53 debug1: identity file /Users/user/Library/Group Containers/E78WKS7W4U.io.coressh.ssh/.ssh/privatekey/id_ed25519.core_tunnel type 3
07:37:53 debug1: identity file /Users/user/Library/Group Containers/E78WKS7W4U.io.coressh.ssh/.ssh/privatekey/id_ed25519.core_tunnel-cert type -1
07:37:53 debug1: Local version string SSH-2.0-OpenSSH_8.8
07:37:53 debug1: Remote protocol version 2.0, remote software version OpenSSH_8.0
07:37:53 debug1: compat_banner: match: OpenSSH_8.0 pat OpenSSH* compat 0x04000000
07:37:53 debug2: fd 5 setting O_NONBLOCK
07:37:53 debug1: Authenticating to remote_host.xxx.xx:22 as 'user'
07:37:53 debug3: record_hostkey: found key type ED25519 in file /Users/user/Library/Group Containers/E78WKS7W4U.io.coressh.ssh/.ssh/known_hosts:1
07:37:53 debug3: load_hostkeys_file: loaded 1 keys from remote_host.xxx.xx
07:37:53 debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
07:37:53 debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
07:37:53 debug3: order_hostkeyalgs: have matching best-preference key type ssh-ed25519-cert-v01@openssh.com, using HostkeyAlgorithms verbatim
07:37:53 Authenticating…
07:37:53 debug3: send packet: type 20
07:37:53 debug1: SSH2_MSG_KEXINIT sent
07:37:53 debug3: receive packet: type 20
07:37:53 debug1: SSH2_MSG_KEXINIT received
07:37:53 debug2: local client KEXINIT proposal
07:37:53 debug2: KEX algorithms: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,ext-info-c
07:37:53 debug2: host key algorithms: ssh-ed25519-cert-v01@openssh.com,ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,sk-ssh-ed25519-cert-v01@openssh.com,sk-ecdsa-sha2-nistp256-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ssh-ed25519@openssh.com,sk-ecdsa-sha2-nistp256@openssh.com,rsa-sha2-512,rsa-sha2-256
07:37:53 debug2: ciphers ctos: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com
07:37:53 debug2: ciphers stoc: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com
07:37:53 debug2: MACs ctos: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
07:37:53 debug2: MACs stoc: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
07:37:53 debug2: compression ctos: none,zlib@openssh.com,zlib
07:37:53 debug2: compression stoc: none,zlib@openssh.com,zlib
07:37:53 debug2: languages ctos: 
07:37:53 debug2: languages stoc: 
07:37:53 debug2: first_kex_follows 0 
07:37:53 debug2: reserved 0 
07:37:53 debug2: peer server KEXINIT proposal
07:37:53 debug2: KEX algorithms: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1
07:37:53 debug2: host key algorithms: rsa-sha2-512,rsa-sha2-256,ssh-rsa,ecdsa-sha2-nistp256,ssh-ed25519
07:37:53 debug2: ciphers ctos: aes256-gcm@openssh.com,chacha20-poly1305@openssh.com,aes256-ctr,aes256-cbc,aes128-gcm@openssh.com,aes128-ctr,aes128-cbc
07:37:53 debug2: ciphers stoc: aes256-gcm@openssh.com,chacha20-poly1305@openssh.com,aes256-ctr,aes256-cbc,aes128-gcm@openssh.com,aes128-ctr,aes128-cbc
07:37:53 debug2: MACs ctos: hmac-sha2-256-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha2-256,hmac-sha1,umac-128@openssh.com,hmac-sha2-512
07:37:53 debug2: MACs stoc: hmac-sha2-256-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha2-256,hmac-sha1,umac-128@openssh.com,hmac-sha2-512
07:37:53 debug2: compression ctos: none,zlib@openssh.com
07:37:53 debug2: compression stoc: none,zlib@openssh.com
07:37:53 debug2: languages ctos: 
07:37:53 debug2: languages stoc: 
07:37:53 debug2: first_kex_follows 0 
07:37:53 debug2: reserved 0 
07:37:53 debug1: kex: algorithm: curve25519-sha256
07:37:53 debug1: kex: host key algorithm: ssh-ed25519
07:37:53 debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
07:37:53 debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
07:37:53 debug3: send packet: type 30
07:37:53 debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
07:37:53 debug3: receive packet: type 31
07:37:53 debug1: SSH2_MSG_KEX_ECDH_REPLY received
07:37:53 debug1: Server host key: ssh-ed25519 SHA256:jFbHCgNmgVbFkzEfOGz0kk/PEu0jq7Si1yOlkKkQ2+g
07:37:53 debug3: record_hostkey: found key type ED25519 in file /Users/user/Library/Group Containers/E78WKS7W4U.io.coressh.ssh/.ssh/known_hosts:1
07:37:53 debug3: load_hostkeys_file: loaded 1 keys from remote_host.xxx.xx
07:37:53 debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
07:37:53 debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
07:37:53 debug1: Host 'remote_host.xxx.xx' is known and matches the ED25519 host key.
07:37:53 debug1: Found key in /Users/user/Library/Group Containers/E78WKS7W4U.io.coressh.ssh/.ssh/known_hosts:1
07:37:53 debug3: send packet: type 21
07:37:53 debug2: set_newkeys: mode 1
07:37:53 debug1: rekey out after 134217728 blocks
07:37:53 debug1: SSH2_MSG_NEWKEYS sent
07:37:53 debug1: expecting SSH2_MSG_NEWKEYS
07:37:53 debug3: receive packet: type 21
07:37:53 debug1: SSH2_MSG_NEWKEYS received
07:37:53 debug2: set_newkeys: mode 0
07:37:53 debug1: rekey in after 134217728 blocks
07:37:53 debug1: pubkey_prepare: ssh_get_authentication_socket: Operation not permitted
07:37:53 debug1: Will attempt key: /Users/user/Library/Group Containers/E78WKS7W4U.io.coressh.ssh/.ssh/privatekey/id_ed25519.core_tunnel ED25519 SHA256:WDLztK+qTiWHVhXc+5iJBkxRBt1WClPP8ROqz2M/iGA explicit
07:37:53 debug2: pubkey_prepare: done
07:37:53 debug3: send packet: type 5
07:37:53 debug3: receive packet: type 7
07:37:53 debug1: SSH2_MSG_EXT_INFO received
07:37:53 debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521>
07:37:53 debug3: receive packet: type 6
07:37:53 debug2: service_accept: ssh-userauth
07:37:53 debug1: SSH2_MSG_SERVICE_ACCEPT received
07:37:53 debug3: send packet: type 50
07:37:53 debug3: receive packet: type 51
07:37:53 debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
07:37:53 debug3: start over, passed a different list publickey,gssapi-keyex,gssapi-with-mic,password
07:37:53 debug3: preferred publickey,keyboard-interactive,password
07:37:53 debug3: authmethod_lookup publickey
07:37:53 debug3: remaining preferred: keyboard-interactive,password
07:37:53 debug3: authmethod_is_enabled publickey
07:37:53 debug1: Next authentication method: publickey
07:37:53 debug1: Offering public key: /Users/user/Library/Group Containers/E78WKS7W4U.io.coressh.ssh/.ssh/privatekey/id_ed25519.core_tunnel ED25519 SHA256:WDLztK+qTiWHVhXc+5iJBkxRBt1WClPP8ROqz2M/iGA explicit
07:37:53 debug3: send packet: type 50
07:37:53 debug2: we sent a publickey packet, wait for reply
07:37:53 debug3: receive packet: type 60
07:37:53 debug1: Server accepts key: /Users/user/Library/Group Containers/E78WKS7W4U.io.coressh.ssh/.ssh/privatekey/id_ed25519.core_tunnel ED25519 SHA256:WDLztK+qTiWHVhXc+5iJBkxRBt1WClPP8ROqz2M/iGA explicit
07:37:53 debug3: sign_and_send_pubkey: ED25519 SHA256:WDLztK+qTiWHVhXc+5iJBkxRBt1WClPP8ROqz2M/iGA
07:37:53 debug3: sign_and_send_pubkey: signing using ssh-ed25519 SHA256:WDLztK+qTiWHVhXc+5iJBkxRBt1WClPP8ROqz2M/iGA
07:37:53 debug1: read_passphrase: requested to askpass
07:37:53 debug2: no passphrase given, try next key
07:37:53 debug2: we did not send a packet, disable method
07:37:53 debug3: authmethod_lookup password
07:37:53 debug3: remaining preferred: ,password
07:37:53 debug3: authmethod_is_enabled password
07:37:53 debug1: Next authentication method: password
07:37:53 debug1: read_passphrase: requested to askpass
07:37:53 debug3: send packet: type 50
07:37:53 debug2: we sent a password packet, wait for reply
07:37:56 debug3: receive packet: type 51
07:37:56 debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
07:37:56 Permission denied, please try again.
07:37:56 debug1: read_passphrase: requested to askpass
07:37:58 The operation was canceled.
07:37:58 Abnormal Disconnect

It looks like you have saved a empty passphrase accidentally, please open Keychain Access and search for item id_ed25519.core_tunnel:

Delete the saved passphrase then the ask pass prompt would be showed again.

Kindly Regards,

Yang