Your comments

Oh yes, it is iOS 13.

And I have managed to get it working now. Unfortunately I cannot begin to guess the root cause. But there was an update available to iOS 13 Beta 4, and after installation the SSH terminal feature started working as intended. 

For all I know it could just be the reboot that fixed it.

Anyways thank you for the reply. I think we can consider this closed.