Warp icon indicating copy to clipboard operation
Warp copied to clipboard

SSH to remote - breaks

Open 1bigidea opened this issue 2 years ago • 2 comments

Discord username (optional)

No response

Describe the bug

ssh [email protected] 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 near hook=$(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

1bigidea avatar Jan 12 '24 14:01 1bigidea

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.

dannyneira avatar Jan 12 '24 22:01 dannyneira

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)

rmsj avatar Feb 18 '24 22:02 rmsj