Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot execute command-line and remote command #1171

Open
1 task done
YunshuaiPeng opened this issue Apr 23, 2022 · 2 comments
Open
1 task done

Cannot execute command-line and remote command #1171

YunshuaiPeng opened this issue Apr 23, 2022 · 2 comments
Labels
Bugs Bugs, Hangs, Crash, and Freezes

Comments

@YunshuaiPeng
Copy link

YunshuaiPeng commented Apr 23, 2022

Discord username (optional)

No response

Local Shell and Version

5.8

Remote Shell and Version

4.2.46(2)-release

Operating System and Version

macos Monterey v12.3.1 and CentOS Linux 7 (Core)

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

  • Yes

Screenshots

This is my ssh config.

Host xxx
   Hostname xx.xx.xx.xx
   Port xx
   Userxx
   RequestTTY yes
   RemoteCommand cd /xx
   ServerAliveInterval  10
   ServerAliveCountMax  5
   ProxyCommand nc -v -x 127.0.0.1:10086 %h %p

image

If I delete the line RemoteCommand cd /xx, warp will works.


The Warp SSH Wrapper is enabled.

image

Include shell xtrace output

Cannot execute command-line and remote command.

@elviskahoro
Copy link
Member

From @CamJN via #502 (reply in thread)

Warp needs to add the ability to run when you have your own remote command set, until they figure that out a cludge would be for them to add -o RemoteCommand=none to their ssh commands, which would disable your command but let their stuff work.

@warpdotdev-devx warpdotdev-devx bot added the Bugs Bugs, Hangs, Crash, and Freezes label Jan 9, 2023
@dannyneira dannyneira mentioned this issue May 22, 2024
2 tasks
@dannyneira
Copy link
Member

Hey Folks, as a workaround you can add command ssh to your Settings > Subshells > Added commands menu, then run command ssh <user@server> to connect to remote session, this will attempt to enable Warp features as a subshell.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bugs Bugs, Hangs, Crash, and Freezes
Projects
None yet
Development

No branches or pull requests

4 participants
@dannyneira @elviskahoro @YunshuaiPeng and others