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

Weird behaviour during SSH #4936

Open dilip-sda-14507 opened 4 months ago

dilip-sda-14507 commented 4 months ago

Dupe Check

Describe the bug

Im connecting to a remote machine using SSH and there I'm getting permission denied when trying to execute "rm" command. But this works fine when I try it in other terminals using the same login for the same IP.

image

To reproduce

  1. Connect to a remote machine using SSH
  2. try deleting a file

Expected behavior

No response

Screenshots

No response

Operating system

MacOS

Operating system and version

14.1.1

Shell Version

No response

Current Warp version

v0.2024.05.14.08.01.stable_04

Regression

Yes, this bug started recently or with an X Warp version

Recent working Warp date

No response

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

vorporeal commented 4 months ago

That is odd. What's the output of echo $PATH? Also, does the issue still occur if you use /use/bin/ssh explicitly or disable Warp's SSH wrapper in the settings?

dannyneira commented 4 months ago

SSH Wrapper requires the default prompt on the remote machine to be either bash or zsh.

As David mentioned, as workaround, you can try using command ssh or /usr/bin/ssh explicitly, If that works you can add to your Settings > Subshell menu, then use command ssh <user@server> or /usr/bin/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.

Related docs. https://docs.warp.dev/features/ssh https://docs.warp.dev/features/subshells

If those don't work, please let us know