warpdotdev / Warp

Warp is a modern, Rust-based terminal with AI built in so you and your team can build great software, faster.
https://warp.dev
Other
21.32k stars 372 forks source link

SSH to remote - breaks #4062

Open 1bigidea opened 9 months ago

1bigidea commented 9 months ago

Discord username (optional)

No response

Describe the bug

ssh resortiafranca@resortiafranca.ssh.wpengine.net bash: -c: line 1: syntax error near unexpected token then' bash: -c: line 1:export TERM_PROGRAM=WarpTerminal hook=$(printf {"hook": "SSH", "value": {"socket_path": "~/.ssh/170473525825243", "remote_shell": "%s"}} ${SHELL##*/} | command -p od -An -v -tx1 | command -p tr -d \n) printf %
zsh: parse error near }' zsh: parse error nearhook=$(printf {"hook...'

To reproduce

uh - type ssh to a site on wp engine

Expected behavior

No response

Screenshots

No response

Operating system

MacOS

Operating system and version

Sonoma 14.2.1

Shell Version

zsh 5.9

Current Warp version

v0.2024.01.09.08.02.stable_01

Regression

No, this bug or issue has existed throughout my experience using Warp

Recent working Warp date

No response

Additional context

new Warp user - I suspect this has something to do with trying to provide the Warp experience when connected to a remote - I don't need that (esp since it doesn't seem to work)

Does this block you from using Warp daily?

Yes, this issue prevents me from using Warp daily.

Is this a Warp specific issue? (i.e. does it happen in Terminal, iTerm, Kitty, etc.)

Yes, this I confirmed this only happens in Warp, not other terminals.

Warp Internal (ignore): linear-label:b9d78064-c89e-4973-b153-5178a31ee54e

None

dannyneira commented 9 months ago

Hi @1bigidea thanks for letting us know. Please make sure the remote machine has either bash/zsh or fish as the default shell. You can try using adding /usr/bin/ssh to your Settings > Subshell menu, then use run usr/bin/ssh user@server to connect and then use the subshell method to enable Warp features. https://docs.warp.dev/features/subshells

Please let us know if this helps with your ssh issues.

rmsj commented 8 months ago

The ssh connection to remote hosts experience is not the ideal environment for warp. In my experience, it flickers, the block approach means you need to double check where the cursor is and for example, copy and paste does not work well at all.

iterm2 is part of my tools and can't be totally replaced because of this and some integration issues with my IDE (Intellij)