Open ITJamie opened 1 year ago
Thanks for opening. We've gotten other reports of not being compatible with jumphosts. Will try to get back to you with a link to the primary issue
is it #502 by any chance? @elviskahoro
no it would be that when your ssh'd to another box (jumphost) when you run ssh command on the other host it doesnt have the wrapper injected at that point so you lose the nice warp wrapping function.
warp should make it possible to inject its wrapper to the hosts it connects to for further ssh jumps
hi folks, just wanted to verify if I'm also thinking of the same issue as reported here.
from localhost --> ssh root@myserver1
✔️ can see full warp features e.g block
from myserver1 --> ssh root@myserver2
❌ no blocks (falls backs to plain terminal...no warp features)
equivalent one-liner:
ssh -t root@myserver1 ssh root@myserver2
or
ssh -J root@myserver1 -i /path/to/key root@myserver2
And basically we would like all the block features when jumping?
I'd like to chime into say I'd love this feature too. When using the jump host ssh using -J / -t, the terminal wrapping doesn't work anymore.
I found there's a workaround, when using ssh config file with the ProxyJump directive to login into the remote server, Warp block can work perfectly. I've only tested on my own evnironment, not sure this is a general workaround.
given the ssh config file as follows.
# ~/.ssh/config
Host remoteserver
HostName 192.168.200.200
User dev
IdentityFile ~/.ssh/<your_key>
Port 2048
ProxyJump jumperserver
Host jumperserver
HostName 192.168.200.100
User dev
IdentityFile ~/.ssh/<your_key>
Port xxxx
and use ssh command in Warp as nomral.
# shell
ssh remoteserver
Not work via jumpserver,
First,I use ssh jump@jumpserver
,
then, p
then, 1
then input username and password into the target server,
then all in one block,and can't use all warp features
HOW to use all feature in target server via jumpserver.
Hi Folks, sorry about this issue. Since the SSH Wrapper is already enabled on the jump server, Warp treats any further ssh connections like a subshell. You can workaround this by adding the subshell line to your remote ssh server rc files.
# For zsh subshells, add to ~/.zshrc.
printf '\eP$f{"hook": "SourcedRcFileForWarp", "value": { "shell": "zsh"}}\x9c'
# For bash subshells, add to ~/.bashrc or ~/.bash_profile.
printf '\eP$f{"hook": "SourcedRcFileForWarp", "value": { "shell": "bash"}}\x9c'
# For fish subshells, add to ~/.config/fish/config.fish.
if status is-interactive
printf '\eP$f{"hook": "SourcedRcFileForWarp", "value": { "shell": "fish"}}\x9c'
end
then, once you SSH into the remote server it should automatically warpify the subshell and enable Warp features. https://docs.warp.dev/features/subshells#automatically-warpify-subshells
Please let us know if this was helpful.
Hi Folks, sorry about this issue. Since the SSH Wrapper is already enabled on the jump server, Warp treats any further ssh connections like a subshell. You can workaround this by adding the subshell line to your remote ssh server rc files.
# For zsh subshells, add to ~/.zshrc. printf '\eP$f{"hook": "SourcedRcFileForWarp", "value": { "shell": "zsh"}}\x9c' # For bash subshells, add to ~/.bashrc or ~/.bash_profile. printf '\eP$f{"hook": "SourcedRcFileForWarp", "value": { "shell": "bash"}}\x9c' # For fish subshells, add to ~/.config/fish/config.fish. if status is-interactive printf '\eP$f{"hook": "SourcedRcFileForWarp", "value": { "shell": "fish"}}\x9c' end
then, once you SSH into the remote server it should automatically warpify the subshell and enable Warp features. https://docs.warp.dev/features/subshells#automatically-warpify-subshells
Please let us know if this was helpful.
this way is worked, but every command is stucked by loading prompt... @dannyneira use twice ctrl+d can exit loading, but next command is the same ...
I found there's a workaround, when using ssh config file with the ProxyJump directive to login into the remote server, Warp block can work perfectly. I've only tested on my own evnironment, not sure this is a general workaround.
given the ssh config file as follows.
# ~/.ssh/config Host remoteserver HostName 192.168.200.200 User dev IdentityFile ~/.ssh/<your_key> Port 2048 ProxyJump jumperserver Host jumperserver HostName 192.168.200.100 User dev IdentityFile ~/.ssh/<your_key> Port xxxx
and use ssh command in Warp as nomral.
# shell ssh remoteserver
This is what I do, and also found it to work.
Discord username (optional)
No response
Describe the solution you'd like?
Is your feature request related to a problem? Please describe.
No response
Additional context
No response
How important is this feature to you?
4
Warp Internal (ignore) - linear-label:770f6576-d6c0-4e4f-a259-fc64b5156087
No response