-
-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After ssh from macOS to NetBSD/OpenBSD host, logged out after first command #855
Comments
One other thing to add: my .bash_logout clears the screen on logout, but when this behavior happens, the screen is not cleared, suggesting some sort of abnormal exit of the shell. |
Hey @mcornick thanks for the detailed issue, I appreciate it! Maybe isn't the fix but do you have rio terminfo installed ssh-ed machine? https://raphamorim.io/rio/docs/frequently-asked-questions/#i-get-errors-about-the-terminal-being-unknown-or-opening-the-terminal-failing-or-functional-keys-like-arrow-keys-dont-work |
Hi, yeah, I've uploaded the terminfo to the various machines I've tried, and that doesn't seem to help either. Very strange! |
Thank you!! I will mark to take a look once I finish #851 🙏 |
I've found a workaround while this is investigated, which I'm sharing in case anyone else runs into this: Mosh does not show the immediate disconnect-after-first-command behavior described in this issue, and works well on the NetBSD and OpenBSD hosts I've tried. 👍 |
I like Rio so far, but I've run into a really bizarre issue connecting via ssh from macOS to NetBSD and OpenBSD hosts in a Rio terminal.
I've installed Rio 0.2.2 via Homebrew on my M2 MacBook Air running Sequoia 15.2. I'm using the Homebrew cask installation, although I'm seeing the same version with Homebrew's formula installation.
If I ssh to hosts running NetBSD or OpenBSD, I get my usual prompt and can enter one command (or even just press Return), but then I am immediately logged out. This only seems to happen on NetBSD and OpenBSD hosts, not on any FreeBSD, Linux, or macOS hosts that I've tried.
Example:
I am not seeing this when doing the same ssh from a Windows 11 machine; the ssh connection stays connected after executing the first command. I don't have a Linux workstation to test with.
I don't think this is related to anything in my .bashrc/.bash_profile/etc. as I've tried with all of those files removed on the remote host, and still the issue persists. This also doesn't seem to be related to the $TERM setting; it happens whether I have $TERM set to xterm-256color (my usual default) or to rio (with the terminfo installed on the remote host.) Nor does it seem related to the shell running on the remote host; I've tried bash, zsh, and ksh, and all exhibit the same behavior.
I've tried on three different OpenBSD hosts and two different NetBSD hosts (the above example is from a NetBSD host) all with the same results.
This is a weird one and I'm not sure what else to try. Got any ideas? Thanks!
The text was updated successfully, but these errors were encountered: