wavetermdev / waveterm

An open-source, cross-platform terminal for seamless workflows
https://www.waveterm.dev
Apache License 2.0
4.06k stars 97 forks source link

Failure to set up a ssh connection to a remote host with fish as login shell #92

Open mz2 opened 10 months ago

mz2 commented 10 months ago

I get the following output from Wave when attempting to connect to a remote host with fish set as the login shell

prompt> error connecting to remote: invalid packet received from mshell client: raw[fish: Unsupported use of '='. In fish, please use 'set PATH $PATH:~/.mshell'.]
nsdont commented 10 months ago

I had a similar problem.

prompt> error connecting to remote: invalid packet received from mshell client: raw[which: no mshell-v0.3 in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/.fzf/bin:/root/.mshell)]
sawka commented 10 months ago

We don't support fish as a remote shell, but you should still be able to connect. I think this is because our connect commands are written to work for bash. We'll need to make them fish compatible.

mullerch commented 9 months ago

We don't support fish as a remote shell, but you should still be able to connect. I think this is because our connect commands are written to work for bash. We'll need to make them fish compatible.

Or explicitly use a specific shell (e.g. you can run bash scripts in fish with bash <script>). However, some targets may not have bash either, so you may consider using sh only.