waveterm icon indicating copy to clipboard operation
waveterm copied to clipboard

error connecting to remote: invalid packet received from mshell client

Open mariuszbrz opened this issue 1 year ago • 1 comments

Describe the bug Wave Terminal 0.6.0. After create of remote ssh connection i receive and click on connect, i receive:

prompt> connecting to user@remote-host...
prompt> error connecting to remote: invalid packet received from mshell client: raw[stty: 'standard input': Inappropriate ioctl for device]
prompt> error reading from controlling-pty: read /dev/ptmx: input/output error

I can confirm, that the .mshell folder is created on remote machine. Reinstalling helper returns:

prompt> installing mshell v0.4.0 to user@remote-host...
prompt> mshell detected remote architecture as 'linux.amd64'
prompt> successfully installed mshell v0.4.0 to ~/.mshell
prompt> connecting to user@remote-host...
prompt> error reading from controlling-pty: read /dev/ptmx: input/output error
prompt> error connecting to remote: invalid packet received from mshell client: raw[stty: 'standard input': Inappropriate ioctl for device]
prompt> error reading from controlling-pty: read /dev/ptmx: input/output error

To Reproduce Steps to reproduce the behavior:

  1. define remote SSH connection
  2. Click on "Connect"
  3. See error

Expected behavior Establish remote connection

Screenshots image

Desktop (please complete the following information):

  • OS: Linux, x64
  • Ubuntu 23.10

mariuszbrz avatar Jan 30 '24 21:01 mariuszbrz

I think this is a combination of 2 issues. One is due to the configuration of stty on your remote machine. My guess would be that you are seeing this issue due to stty not being able to detect an interactive shell.

But that being said, we should be able to handle those errors on our end, and it seems like we aren't doing that properly. Do you, by chance see the stty: 'standard input': Inappropriate ioctl for device message when using ssh from a command line?

oneirocosm avatar Mar 04 '24 23:03 oneirocosm