Erling Westenvik wrote: > On Sun, Feb 07, 2021 at 11:18:31AM +0100, Stefan Hagen wrote: >> Christian Weisgerber wrote: >>> Erling Westenvik: >>>> I can ssh FROM any OpenBSD box INTO iSH on my iPhone, and once >>>> authenticated I can ssh back from there to the OpenBSD box or >>>> to any other OpenBSD or Linux box, but! -- From iSH itself (ie. >>>> "directly" from my iPhone) I can only successfully ssh to Linux >>>> boxes; if I ssh from the phone itself to any OpenBSD box I'm >>>> getting authenticated and receive a full shell prompt >>> >>> I don't think it's anything obvious. Smells like an interop problem >>> at a level above SSH to me. >> >> I tried iSH and I can successfully ssh to my OpenBSD-current box and >> do stuff there without a disconnect. > > Thank you Stefan. I tried your suggestion but to no avail. However, I > started elaborating on your assumption that it may be shell related > and when trying: > > --- > iPhone:~# ssh erling@12.34.56.78 ksh -i > ksh: No controlling tty (open /dev/tty: Device not configured) > ksh: Can't find tty file descriptor > ksh: Warning: won't have full job control > OpenBSD$ ls >... > OpenBSD$ █ > ---
This is normal. SSH doesn't allocate a terminal when a command is given directly. Try `ssh -t erling@12.34.56.78 ksh -i`. Best Regards, Stefan