SSH into iPhone without "OpenSSH"-like IPA?
Does any part of the touch screen respond (doesn't matter where)? If so, you could have VoiceOver help you enter the passcode, as described in this blog post I wrote: https://deciphertools.com/blog/iphone-passcode-broken-screen/

If not, there's a comment on there about using a USB keyboard via a USB lightning connector. I haven't vetted this idea myself yet, but maybe could help?