Re: SSH immediately disconnects after logging in
Sylvain Saboua <[email protected]> Mon, 03 Aug 2026 19:45:49 +0200
| Newsgroups | gmane.os.openbsd.misc |
|---|---|
| Message-ID | <[email protected]> |
I forwarded your comment on iSH's discord server and the person who forked iSH-AOK kindly issued a pull request : https://github.com/ish-app/ish/pull/2783 “This is specifically an iSH ssh->BSD sshd bug”, he comments. On 2026-07-30 06:17, David Leadbeater wrote: > On Wed, Jul 29, 2026 at 02:35:15PM +0200, Sylvain Saboua wrote: >> I'm trying to log in my SSH administration console on my >> laptop-turned-server. >> I can connect fine from other devices, whether locally or from remote. >> Here on iPhone with iSH, an Alpine Linux emulator, I get this strange >> behavior >> where it will display the log in prompt (see below) as if the logging >> in >> were >> successful but immediately disconnect. > > I can reproduce this using iSH to connecting to a 7.9 machine: > ssh -t user@host /bin/sh > (press enter, instant disconnect) > > However: ssh -t user@host /bin/cat > works (i.e. it echos back my input a line at a time). > > It feels like iSH isn't correctly handling terminal state. I suspect > their "emulation" of Linux and in particular tty line disciplines isn't > quite correct, there's a few issues about related areas in their > tracker > (e.g. https://github.com/ish-app/ish/pull/2449 -- although I don't > think > that exactly is the issue here). The https://github.com/emkey1/ish-AOK > fork supports strace, maybe that would be possible to debug with, else > this feels like a bug report to iSH. -- Sylvain Saboua looking for a PDP-11