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.09k stars 360 forks source link

SSH connection breaks immediately #4924

Open thatsnotamuffin opened 4 months ago

thatsnotamuffin commented 4 months ago

Dupe Check

Describe the bug

When I SSH into an instance; amazon linux 2023, ubuntu 20.04, and ubuntu 22.04, the connection breaks immediately after entering a command in the terminal. Warp shows the below output after entering any command in the remote terminal

exit
Connection to 10.x.x.x closed.

The issue is almost intermittent, but consistent. Every so often Warp will work as expected but more often than not, the connection will break immediately. I am on an internal VPN, however any other terminal will work including Terminator and the stock Terminal.

To reproduce

  1. SSH to a remote instance in AWS
  2. Enter a command

Expected behavior

I should be able to use the remote terminal/SSH connection as normal

Screenshots

No response

Operating system

Linux

Operating system and version

Ubuntu 20.04

Shell Version

GNU bash, version 5.0.17(1)-release (x86_64-pc-linux-gnu)

Current Warp version

v0.2024.05.07.08.02.stable_02

Regression

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

Recent working Warp date

May 16, 2024

Additional context

No response

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

danielpeng2 commented 4 months ago

Thanks for reporting. Are you able to try SSHing into a remote instance while not on the VPN, I'm curious if that works.

As a workaround, you can try using adding command ssh to your Settings > Subshell menu, then use command ssh <user@server> to connect to sessions, this will enable Warp features with the subshell method instead of the ssh wrapper.

Or, you can also try disabling the SSH wrapper by navigating to Settings > Features. Blocks will stop working but with it disabling, SSH should work as normal.

dannyneira commented 4 months ago

Please see our ssh troubleshooting docs for more on this. https://docs.warp.dev/features/ssh#troubleshooting-ssh