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.31k stars 371 forks source link

Cannot use `RemoteCommand` in ~/.ssh/config, error: Cannot execute command-line and remote command. #4466

Open ElijahLynn opened 8 months ago

ElijahLynn commented 8 months ago

I use RemoteCommand in my SSH config to become another user immediately after login with my user.

e.g. RemoteCommand sudo su - <target-user>

And I have different users for different hosts.

With Warp, I get the error Cannot execute command-line and remote command.. So it seems like Warp may be using it's own RemoteCommand in the wrapper. This works fine if I turn the wrapper off. If this is the case, maybe there is a way to combine the two?

Discord username (optional)

No response

Operating System

MacOS

Operating System and Version

14.1.2 (23B92)

Local Shell Version

Fish 3.6.1

Remote Shell Version

N/A

Warp Version

v0.2024.02.27.08.01.stable_03

I have tried commenting out my system & user rcfiles and warp still will not bootstrap

Screenshots

No response

Include shell xtrace output

No output in Fish with set WARP_DEBUG_MODE 1

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:e7dfaa84-5fdb-4a00-b754-d8912da923fa

None

Warp Internal (ignore): linear-label:b8107fdf-ba31-488d-b103-d271c89cac3e

None

nick-youngblut commented 2 months ago

An example from my ${HOME}/.ssh/config on my macbook:

Host my_cluster
  HostName X.XX.XX.XX
  User nickyoungblut
  IdentityFile ~/.ssh/id_rsa
  RequestTTY yes
  RemoteCommand sh_dev --mem 8G --cpus-per-task 8

I need to use this command to start interactive jobs on this SLURM cluster. If I cannot run ssh my_cluster, then I can't use Warp 😞