Dear tramp-devel,

**Apologies if this is sent twice, I was not subscribed to the list
before sending this message and did not see it on archives so I assume
it was silently dropped.**


I am trying to connect to a remote that is behind a proxyjump in my
SSH config. It is described as follows:

Host host2
  SetEnv TERM=xterm-256color
  HostName host2
  ProxyJump rnagpal@host1
  User rnagpal
  LocalForward 8888 localhost:8888

Host host1
  HostName host1
  User rnagpal
  LocalForward 8888 localhost:8888

With a terminal, I am able to ssh without issue via `ssh host2`
however I cannot do it with TRAMP, async-shell-command, nor eshell.
However, I can do it via term from within emacs. Furthermore it works
by piping `/ssh:host1 | /ssh:host2`

But just using `/ssh:host2`
I get the following error:
```
bash: No such file or directory
Connection closed by UNKNOWN port 65535
```
TRAMP log with verbose level 7:
```
13:37:02.964746 tramp-maybe-open-connection (6) # /bin/sh -i
13:37:02.965207 tramp-wait-for-regexp (6) #
#$
13:37:02.965319 tramp-maybe-open-connection (3) # Opening connection
for host2 using ssh...
13:37:02.965367 tramp-send-command (6) # exec ssh -o
ControlMaster=auto -o ControlPath=/home/rishub/.cache/emacs/tramp.%C
-o ControlPersist=no -e none host2 || exit
13:37:02.965400 tramp-process-actions (3) # Waiting for prompts from
remote shell...
13:37:02.966720 tramp-process-one-action (5) # Looking for regexp
"\(.*\(?:login\|user\)\(?:[[:blank:]].*\)?:[[:blank:]]*\)\'" from
remote shell
```

I thought the issue may be related
to:https://emacs.stackexchange.com/questions/24159/tramp-waiting-for-prompts-from-remote-shell
However after removing my .bashrc and .profile on both hosts the issue
still persists.

Any ideas on what to do? Will be happy to provide additional logs or context
Rishub

Reply via email to